[Python-3000] yes to class decorators

Andre Meyer meyer at acm.org
Thu Nov 16 12:36:47 CET 2006


On 11/16/06, tomer filiba <tomerfiliba at gmail.com> wrote:
>
>
> we should find some more/better use-cases than what i came
> up with, and show why class decorators are the right solution,
> and compare with function decorators.


A while ago I was trying to implement the Singleton or Borg design pattern
and thought it could be elegantly made accessible via a class decorator. It
proved otherwise. Maybe this is a useful use-case for you.

regards
André
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20061116/99f34dde/attachment.htm 


More information about the Python-3000 mailing list