You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The typical initialization of PyMutex in its comment document cannot be compiled on Windows #115304
I don't understand the links above. pycore_lock.h, 28-29, are as listed, but have nothing obvious to do with commit 2939ad0 for a pydoc fix. Neither do those lines have any obvious connections with the compile error in random_value *= 1082527; in rotatingtree.c. The build report is not obviously linked back to a particular PR.
Hi @terryjreedy the compile error in the link should be:
3>D:\a\cpython\cpython\Modules\rotatingtree.c(19,16): error C2099: initializer is not a constant [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj] (I'll update this to the first comment, sorry I forgot it yesterday)
And change the usage to PyMutex m = {0}; got compile passed on Windows, see the commits in #115301
commit 2939ad0 have no connections to this issue, I guess you mixed this with other issues?
Activity
pythongh-115304: Correct the typical initialization of PyMutex in its…
terryjreedy commentedon Feb 11, 2024
I don't understand the links above.
pycore_lock.h, 28-29, are as listed, but have nothing obvious to do with commit 2939ad0 for a pydoc fix. Neither do those lines have any obvious connections with the compile error inrandom_value *= 1082527;in rotatingtree.c. The build report is not obviously linked back to a particular PR.aisk commentedon Feb 12, 2024
Hi @terryjreedy the compile error in the link should be:
3>D:\a\cpython\cpython\Modules\rotatingtree.c(19,16): error C2099: initializer is not a constant [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj](I'll update this to the first comment, sorry I forgot it yesterday)And change the usage to
PyMutex m = {0};got compile passed on Windows, see the commits in #115301commit 2939ad0 have no connections to this issue, I guess you mixed this with other issues?
gh-115304: Add doc for initializing PyMutex as a global variable (#11…
pythongh-115304: Add doc for initializing PyMutex as a global variable (
pythongh-115304: Add doc for initializing PyMutex as a global variable (
pythongh-115304: Add doc for initializing PyMutex as a global variable (