![]() |
|
|
+ Search |
![]()
|
Feb 15th, 2004 09:32
Washington Corrêa, ben ben,
Do you mean creating new objects from list elements? If yes, then I
think this might help:
mm = ['aa', 'bb', 'cc']
for o in mm:
exec o + "=12"
print aa
print bb
print cc
This code will create three int objects (aa, bb and cc), all with value 12.
ok?