Message76509
It is "valid" Python 3 and the lack of an effect on the local is correct.
From Python 3 on, "exec" is a function and therefore lacks the special
magic properties it had in Python 2 that made it possible execute the
code "as if it just was written there".
In effect, what exec() modifies here is similar to what locals()
returns: a mere copy of the local namespace. |
|
Date |
User |
Action |
Args |
2008-11-27 17:47:22 | georg.brandl | set | recipients:
+ georg.brandl, beazley |
2008-11-27 17:47:21 | georg.brandl | set | messageid: <1227808041.76.0.167850463445.issue4447@psf.upfronthosting.co.za> |
2008-11-27 17:47:21 | georg.brandl | link | issue4447 messages |
2008-11-27 17:47:20 | georg.brandl | create | |
|