An empty object with dynamic attributes (expando)
dmtr
dchichkov at gmail.com
Sat Jun 5 22:07:32 EDT 2010
Previous message (by thread):
An empty object with dynamic attributes (expando)
Next message (by thread):
An empty object with dynamic attributes (expando)
Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Right. >>>
m = lambda:expando
>>>
m.myattr = 1
>>>
print m.myattr
1 -- Cheers, Dmitry
Previous message (by thread):
An empty object with dynamic attributes (expando)
Next message (by thread):
An empty object with dynamic attributes (expando)
Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-list mailing list