3 ms·
At least for Python 2.7, you would expect the code run with exec to share the locals and globals with the environment where you called exec from. Thats why the
by revelation 15y ago
At least for Python 2.7, you would expect the code run with exec to share the locals and globals with the environment where you called exec from. Thats why the x = x + 1 works, after all.
- dcrosta 15y agoAfter reading through the bug you linked, now I agree with your statement and not with my first comment here. Will the madness never end?