This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Arfrever, gennad, pitrou, serhiy.storchaka, vstinner
Date 2014-02-10.16:12:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:22serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, vstinner, Arfrever, gennad
2014-02-10 16:12:22serhiy.storchakasetmessageid: <>
2014-02-10 16:12:21serhiy.storchakalinkissue19255 messages
2014-02-10 16:12:21serhiy.storchakacreate