Re: [pyar] Problemas de memory leak

Página superior
Adjuntos:
+ (text/plain)
Eliminar este mensaje
Responder a este mensaje
Autor: Roberto Alsina
Fecha:  
A: Python Argentina
Asunto: Re: [pyar] Problemas de memory leak
On Tuesday 05 October 2010 16:03:17 Ale wrote:
> Pregunta: No queres entonces esto?
> In [1]: class C(dict):
>    ...:     __getattr__ = dict.__getitem__
>    ...:    
>    ...:    

>
> In [2]: c = C()
>
> In [3]: c['a'] = 42
>
> In [4]: c.a
> Out[4]: 42


Ahá!
_______________________________________________
pyar mailing list
http://listas.python.org.ar/listinfo/pyar

PyAr - Python Argentina - Sitio web: http://www.python.org.ar/