py3k feature proposal: field auto-assignment in constructors
Wildemar Wildenburger
lasses_weil at klapptsowieso.net
Sun Jan 27 20:13:07 EST 2008
Ben Finney wrote:
> "André" <andre.roberge at gmail.com> writes:
>
>> Personally, I like the idea you suggest, with the modification that I
>> would use "." instead of "@", as in
>>
>> class Server(object):
>> def __init__(self, .host, .port, .protocol, .bufsize, .timeout):
>> pass
>
> -1.
>
> That leading dot is too easy to miss when looking over the code.
>
class Server(object):
def __init__(self, self.host, self.port,
self.protocol, self.bufsize, self.timeout):
pass
?
/W
More information about the Python-list
mailing list