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.

classification
Title: PyGILState_XXX missing in Python builds without threads
Type: behavior Stage: resolved
Components: Versions: Python 3.3
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: BreamoreBoy, dalcinl, ned.deily, vstinner
Priority: normal Keywords:

Created on 2010-09-28 15:22 by dalcinl, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg117531 - (view) Author: Lisandro Dalcin (dalcinl) Date: 2010-09-28 15:22
I've built Python-2.6.5 form with this :

$ ./configure --without-threads --prefix=$HOME/python-without-threads
$ make && make install

$ cd ~/python-without-threads/lib
$ nm libpython2.6.so | grep PyGILState
$ 

At Include/pystate.h,  PyGILState_{Ensure|Release} are not protected with #ifdef WITH_THREADS

At Python/pystate.c PyGILState_{Ensure|Release} are implemented in a block protected with #ifdef WITH_THREADS

AFAIK, this happens in all Python versions back to 2.3 and up to 3.2
msg221012 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-06-19 19:23
Can somebody check to see if this is still a problem, I've only got a Windows PC.
msg221021 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2014-06-19 20:45
75503c26a17f for Python 3.3 added WITH_THREADS protection to the PyGILState_{Ensure|Release} definitions in Include/pystate.h.
History
Date User Action Args
2022-04-11 14:57:07adminsetgithub: 54181
2014-06-19 20:45:31ned.deilysetstatus: open -> closed

versions: + Python 3.3, - Python 2.7, Python 3.4, Python 3.5
nosy: + ned.deily

messages: + msg221021
resolution: out of date
stage: resolved
2014-06-19 19:23:30BreamoreBoysetversions: + Python 3.4, Python 3.5, - Python 3.2, Python 3.3
nosy: + BreamoreBoy

messages: + msg221012

type: behavior
2011-06-05 12:57:58pitrousetnosy: + vstinner
2011-06-01 06:21:47terry.reedysetversions: - Python 2.6, Python 2.5, Python 3.1
2010-09-28 15:22:18dalcinlcreate