An empty object with dynamic attributes (expando)

dmtr dchichkov at gmail.com
Sat Jun 5 22:07:32 EDT 2010


Right.

>>> m = lambda:expando
>>> m.myattr = 1
>>> print m.myattr
1

-- Cheers, Dmitry



More information about the Python-list mailing list