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 | vstinner |
|---|---|
| Recipients | Arfrever, neologix, pitrou, tim.peters, vstinner |
| Date | 2013年11月28日.16:17:52 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <CAMpsgwZf5X2L-4KSV=fPWNo59UaBx7VkFDTi5F-jAQxjO=RnQg@mail.gmail.com> |
| In-reply-to | <1385649353.15.0.541823293601.issue19787@psf.upfronthosting.co.za> |
| Content | |
|---|---|
2013年11月28日 Antoine Pitrou <report@bugs.python.org>: > Calling it _PyThread_set_key_value is prone to confusion. > Ideally we would fix PyThread_set_key_value's behaviour. Are there users of the function outside from CPython? PyThread_set_key_value() is defined and used in CPython, and defined in the cpyext module of PyPy. I found two usages of the function: "pygobject2:/pygobject-2.28.6/glib/pygmainloop.c" and"pytools:/Servicing/1.1/Release/Product/Python/PyDebugAttach/PyDebugAttach.cpp" http://searchcode.com/codesearch/view/21308375 http://searchcode.com/codesearch/view/10353970 PyThread_delete_key_value() is always called before PyThread_set_key_value() (with the same key). So these projects would not be impacted by the change. I guess that the key is deleted to workaround the current limitation ("strange behaviour") of PyThread_set_key_value(). I cannot find pygmainloop.c in the latest development version: https://git.gnome.org/browse/pygobject/tree/gi/_glib I searched for usage at: http://code.ohloh.net/ https://github.com/search/ http://searchcode.com/ http://stackoverflow.com/search It's hard to find usage of PyThread_set_key_value() before they are a lot of copies of CPython in the search engines, and I don't know how to filter. Victor |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2013年11月28日 16:17:52 | vstinner | set | recipients: + vstinner, tim.peters, pitrou, Arfrever, neologix |
| 2013年11月28日 16:17:52 | vstinner | link | issue19787 messages |
| 2013年11月28日 16:17:52 | vstinner | create | |