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.


_______________________________________________
Python mailing list
[email protected]
http://www.py.cz/mailman/listinfo/python

Odpovedet emailem