Skip to content
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

gh-111863: Rename Py_NOGIL to Py_GIL_DISABLED #111864

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Nov 8, 2023

A suggestion for gh-111863, following the pattern of the --disable-gil flag.

cc @colesbury

@pitrou
Copy link
Member

pitrou commented Nov 9, 2023

Then I would suggest Py_GIL_DISABLED (using a noun + adjective, rather than a verb, for a constant).

@colesbury
Copy link
Contributor

Thanks @hugovk. I would like some comment first from the Python steering council about the preferred name so that:

  1. We don't need to change it again in the future.
  2. We don't spend too much time bikeshedding the name.

Beyond that, we'll also need to change pypa/packaging as it uses sysconfig.get_config_var("Py_NOGIL"), which comes from the macro defined in configure.

@gpshead
Copy link
Member

gpshead commented Nov 19, 2023

The SC threw our xkcd-randomized dart at the dartboard of bikeshed names: it landed on Py_GIL_DISABLED.

@hugovk
Copy link
Member Author

hugovk commented Nov 20, 2023

Thanks, updated to use Py_GIL_DISABLED.

@hugovk hugovk changed the title gh-111863: Rename Py_NOGIL to Py_DISABLE_GIL gh-111863: Rename Py_NOGIL to Py_GIL_DISABLED Nov 20, 2023
@hugovk hugovk merged commit 3b3ec0d into python:main Nov 20, 2023
32 checks passed
@hugovk hugovk deleted the rename-Py_NOGIL branch November 20, 2023 13:52
@Yhg1s
Copy link
Member

Yhg1s commented Nov 21, 2023

This created a file in Misc/NEWS.d/next/C_API, presumably by accident. The actual directory should be Misc/NEWS.d/next/"C API" (a space instead of an underscore). Was the blurb file created by hand, or is this a bug in blurb or blurb-it?

aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
ambv added a commit to python/peps that referenced this pull request Mar 6, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes topic-free-threading
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants