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

Carl Johnson cmjohnson.mailinglist at gmail.com
Wed Oct 21 12:16:29 CEST 2009

I would also appreciate a faster way to do the boilerplate in an
__init__ of saying self.arg1 = arg1, self.arg2 = arg2, etc. But what
would be the global implications of changing locals() to an odict? Is
that backwards compatible? If not, perhaps we could add a new builtin,
say "olocals()" instead?


More information about the Python-ideas mailing list