py3k feature proposal: field auto-assignment in constructors

Arnaud Delobelle arnodel at googlemail.com
Sun Jan 27 20:56:31 EST 2008


On Jan 28, 1:47 am, Steven D'Aprano <st... at REMOVE-THIS-
cybersource.com.au> wrote:
[...]
> As nice as this feature would be, and I vote +2 on the functionality, I
> wonder whether the amount of line noise in method definitions now will be
> approaching Perlish levels? We've got default values, type annotations
> (in Python3), *args and **kwargs, _ private names, and now we want to add
> auto-assignment.

Don't forget keyword only arguments!  I find signatures too
complicated already, please let's not clutter them even more.

--
Arnaud




More information about the Python-list mailing list