singleton objects with decorators

Uwe Mayer merkosh at hadiko.de
Tue Apr 12 11:30:56 EDT 2005


Tuesday 12 April 2005 17:00 pm Michele Simionato wrote:

> I did not put memoize on __new__. I put it on the metaclass __call__.
> Here is my memoize:
[...] 

Clever, thanks! :)

Ciao
Uwe     



More information about the Python-list mailing list