[snip]
I want to execute a statement indirectly in Python. Take the simple case below. The chevrons ">> " indicate the result of the statement
- b = 2
- a = b + 6
- eval('a = b + 6', globals(), locals() )
There are often better solutions than exec. Tell us a bit more about what you are trying to accomplish.
mailto:[EMAIL PROTECTED]
510 558 3275 home
720 938 2625 cell
_______________________________________________ Python-win32 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-win32
