Message4661

Author zyasoft
Recipients fisherja, zyasoft
Date 2009-05-08.18:59:20
SpamBayes Score 9.7970965e-11
Marked as misclassified No
Message-id <1241809161.36.0.783619430708.issue1340@psf.upfronthosting.co.za>
In-reply-to
Content
Have you tried using PySystemState#shadow? This is for the purpose of
working around the use of statics, specifically builtins, warnoptions,
and platform. (Unfortunately we won't be able to make breaking API
changes in modules like PySystemState until 3.x.)

PySystemState.modules is an instance variable, so that should also work
for you.

You can see a moderate exercise of this is in test_sys_jy.py,
specifically the test case ShadowingTest.

Note that this bug is related to #471481, #1868602, and #607391.
History
Date User Action Args
2009-05-08 18:59:21zyasoftsetmessageid: <1241809161.36.0.783619430708.issue1340@psf.upfronthosting.co.za>
2009-05-08 18:59:21zyasoftsetrecipients: + zyasoft, fisherja
2009-05-08 18:59:21zyasoftlinkissue1340 messages
2009-05-08 18:59:20zyasoftcreate