[Python-ideas] Syntax for making stuct / record / namedtuples

Arnaud Delobelle arnodel at googlemail.com
Wed Oct 21 14:30:03 CEST 2009


2009/10/21 Carl Johnson <cmjohnson.mailinglist at gmail.com>:
> I would also appreciate a faster way to do the boilerplate in an
> __init__ of saying self.arg1 = arg1, self.arg2 = arg2, etc.

There was a discussion on c.l.p and I wrote a recipe for that:

http://code.activestate.com/recipes/551763/

-- 
Arnaud



More information about the Python-ideas mailing list