[pyar] Problemas de memory leak

Roberto Alsina ralsina en netmanagers.com.ar
Mar Oct 5 16:41:25 ART 2010


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á!



More information about the pyar mailing list