Message308949
FWIW, this isn't a quirk of how locals() works. Instead, it reflects the more interesting reality that at the top level, locals and globals *are* the same dictionary. Also, that is not the only occurrence -- if exec() is called with only one dictionary, that dict is used for both locals and globals. |
|
Date |
User |
Action |
Args |
2017-12-23 08:12:02 | rhettinger | set | recipients:
+ rhettinger, steven.daprano, docs@python |
2017-12-23 08:12:02 | rhettinger | set | messageid: <1514016722.23.0.213398074469.issue32413@psf.upfronthosting.co.za> |
2017-12-23 08:12:02 | rhettinger | link | issue32413 messages |
2017-12-23 08:12:02 | rhettinger | create | |
|