Message84813
| Author | jhylton |
|---|---|
| Recipients | ajaksu2, arigo, georg.brandl, jhylton, josiahcarlson, nickjacobson |
| Date | 2009-03-31.15:56:24 |
| SpamBayes Score | 8.7875554e-07 |
| Marked as misclassified | No |
| Message-id | <1238514985.59.0.547244501238.issue991196@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
This code behaves as intended. The module-level execution environment is different than other environments. The global scope and local scope are the same dictionary. Assignments at the top-level become globals because of this behavior of the execution environment. If you want exec to mimic the top-level environment, you need to pass it a single dictionary. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2009-03-31 15:56:25 | jhylton | set | recipients: + jhylton, arigo, georg.brandl, josiahcarlson, nickjacobson, ajaksu2 |
| 2009-03-31 15:56:25 | jhylton | set | messageid: <1238514985.59.0.547244501238.issue991196@psf.upfronthosting.co.za> |
| 2009-03-31 15:56:24 | jhylton | link | issue991196 messages |
| 2009-03-31 15:56:24 | jhylton | create | |