Message9794

Author kevinmcmurtrie
Recipients kevinmcmurtrie
Date 2015-04-10.23:50:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428709837.46.0.602412669273.issue2321@psf.upfronthosting.co.za>
In-reply-to
Content
Py.setSystemState(PySystemState newSystemState) places the new value into a ThreadState object that has only a weak reference.  It ceases to exist almost immediately, resulting in Py.setSystemState() doing nothing.  Almost every Python execution has a new default PySystemState.

The fancy two-layer cache in ThreadStateMapping is not necessary and it's causing this bug.
History
Date User Action Args
2015-04-10 23:50:37kevinmcmurtriesetrecipients: + kevinmcmurtrie
2015-04-10 23:50:37kevinmcmurtriesetmessageid: <1428709837.46.0.602412669273.issue2321@psf.upfronthosting.co.za>
2015-04-10 23:50:37kevinmcmurtrielinkissue2321 messages
2015-04-10 23:50:37kevinmcmurtriecreate