py3k feature proposal: field auto-assignment in constructors

Wildemar Wildenburger lasses_weil at klapptsowieso.net
Sun Jan 27 18:39:02 EST 2008


Dustan wrote:
>> Well, you save one or two lines per class.  Not enough in my
>> opinion.
> 
> Are you referring to the alternate syntax or to the decorator? Either
> way, you could be saving 4 or 5 or more lines, if you have enough
> arguments.

OK, but then again, every decent IDE should give you the tools to write 
an automation for that. Not that I don't like the idea of 
auto-assignment, but, you know ...

/W



More information about the Python-list mailing list