py3k feature proposal: field auto-assignment in constructors

Christian Heimes lists at cheimes.de
Sun Jan 27 20:37:08 EST 2008


Paul McGuire wrote:
> I thought at one time there was to be a "decorators" module in the
> stdlib for just this kind of useful item.  At minimum, you could post
> this to the Python wiki at http://wiki.python.org/moin/PythonDecoratorLibrary.

Please take  the idea to the Python developer list. Several decorators
are either already implemented (e.g. the first decorator is
functools.wraps) and others are too special but some of the decorators
including auto assignment seem useful.

Christian




More information about the Python-list mailing list