-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
The typical initialization of PyMutex in its comment document cannot be compiled on Windows #115304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't understand the links above. |
Hi @terryjreedy the compile error in the link should be:
And change the usage to commit 2939ad0 have no connections to this issue, I guess you mixed this with other issues? |
cpython/Include/internal/pycore_lock.h
Lines 28 to 29 in 2939ad0
But it cannot be compiled outside a function on Windows: https://github.com/python/cpython/actions/runs/7862752441/job/21452578591 with this error:
Also check here be0427f#diff-266bed9d854389a88ddd0696e9a225a2570559901edf0e909de43dd1f49ce80aR19 to see the usage and the compile error.
Change it to
PyMutex m = {0};
can resolve this issue.Linked PRs
The text was updated successfully, but these errors were encountered: