Message202169
| Author |
vstinner |
| Recipients |
Arfrever, neologix, pitrou, serhiy.storchaka, vstinner |
| Date |
2013年11月04日.20:56:44 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1383598605.02.0.101410764978.issue19466@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> You are clearing the thread state of the currently executing
> thread, which doesn't sound right.
Oh, I didn't realize that PyThreadState_Clear() clears also Python thread locals.
Here is a new patch without PyThreadState_Clear(tstate) and with two unit tests:
- ensure that Python thread locals are not destroyed before destructors are called
- ensure that object destructors are called before Python thread states are destroyed |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年11月04日 20:56:45 | vstinner | set | recipients:
+ vstinner, pitrou, Arfrever, neologix, serhiy.storchaka |
| 2013年11月04日 20:56:45 | vstinner | set | messageid: <1383598605.02.0.101410764978.issue19466@psf.upfronthosting.co.za> |
| 2013年11月04日 20:56:45 | vstinner | link | issue19466 messages |
| 2013年11月04日 20:56:44 | vstinner | create |
|