[python] problem s odkazem na promennou - VYRESENO

Lansky, Milan - Acision milan.lansky na acision.com
Čtvrtek Březen 6 12:57:19 CET 2008


Diky moc za odpovedi. V podstate jsem hledal prikaz exec:

exec('var01 = 1')

Ale reseni s locals je taky moc super. To by mne asi nikdy nenapadlo:)
locals()['var02'] = 2


Python je opravdu skvely!!

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.




Další informace o konferenci Python