Python Limitations

Modifying Locals

When exec was a statement in Python 2.x it was possible to write code like:

exec "a = 5"

But when it became a statement in 3.0 this ability was lost. There is a horrible hack here which is close.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License