Message210845
Here is backported to 3.3 patch. It includes:
1. Operates not with sys.modules['builtins'].__dict__ and sys.modules['sys'].__dict__, but with cached interp->builtins and interp->sysdict, because sys.modules['builtins'] and sys.modules['sys'] can be changed, but builtins and standard streams for builtins are retrieved from cached interp->builtins and interp->sysdict.
2. interp->builtins is restored to saved copy.
3. Backported test. Actually it passed with current code, but can prevent future bugs.
I'm not sure about (2), but may be (1) should be applied. |
|
Date |
User |
Action |
Args |
2014-02-10 16:12:22 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, vstinner, Arfrever, gennad |
2014-02-10 16:12:22 | serhiy.storchaka | set | messageid: <1392048742.02.0.593099812834.issue19255@psf.upfronthosting.co.za> |
2014-02-10 16:12:21 | serhiy.storchaka | link | issue19255 messages |
2014-02-10 16:12:21 | serhiy.storchaka | create | |
|