Wildemar Wildenburger <[EMAIL PROTECTED]> writes:
> class Server(object):
> def __init__(self, self.host, self.port,
> self.protocol, self.bufsize, self.timeout):
> pass
> ?
That could temporarily bind those attributes but it shouldn't
persistently mutate the object.
How about:
class Server(object):
def __init__(self, host, port, protocol, bufsize, timeout):
self.(host, port, protocol, bufsize, timeout) = \
host, port, protocol, bufsize, timeout
That's fairly explicit yet cuts down the total amount of boilerplate.
--
http://mail.python.org/mailman/listinfo/python-list