py3k feature proposal: field auto-assignment in constructors

Arnaud Delobelle arnodel at googlemail.com
Mon Jan 28 13:44:59 EST 2008


On Jan 28, 4:30 am, Tim Chase <python.l... at tim.thechases.com> wrote:
> I've seen some folks import inspect/functools, but from my
> testing, the __init__ method in question has a .func_code object
> that already has the varnames in it.

in py3k f.func_code gives way to f.__code__, this is why inspect may
be preferable

--
Arnaud




More information about the Python-list mailing list