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 ncoghlan
Recipients asvetlov, grahamd, mhammond, ncoghlan, pitrou
Date 2012-08-29.09:31:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1346232697.62.0.74205268898.issue15751@psf.upfronthosting.co.za>
In-reply-to
Content
Yeah, I eventually came around to agreeing that it's better to stick with the Ensure/Release model. SwitchInterpreter gets messy when it comes to managing the lifecycle of temporary thread states.

So an EnsureEx/ReleaseEx pair with a new struct that includes both the GIL state info and either the previous thread state or an interpreter pointer sounds good to me.
History
Date User Action Args
2012-08-29 09:31:37ncoghlansetrecipients: + ncoghlan, mhammond, pitrou, grahamd, asvetlov
2012-08-29 09:31:37ncoghlansetmessageid: <1346232697.62.0.74205268898.issue15751@psf.upfronthosting.co.za>
2012-08-29 09:31:37ncoghlanlinkissue15751 messages
2012-08-29 09:31:35ncoghlancreate