Skip to content

Rename Py_NOGIL to a positive term #111863

Description

@hugovk

From the PEP 703 acceptance:

We want to avoid negatives in terms and flags and such, so we won’t get into double-negative terrain (like we do when we talk about ‘non no-GIL’). We’d like a positive, clear term to talk about the no-GIL build, and we’re suggesting ‘free-threaded’. (Relatedly, that’s why the build mode/ABI letter is ‘t’ and not ‘n’; that change was already made.)

Py_NOGIL is a user-facing macro, let's rename it to something positive.

Maybe Py_DISABLE_GIL or Py_FREE_THREADED?

cc @colesbury

Linked PRs

Activity

  1. corona10 commented on Nov 8, 2023

    @corona10
    Member

    Maybe it will affect to #111571, Sam may need to make decision what should go first :)
    But I agree with updating the term to follow SC's decision anyway.

  2. hugovk commented on Nov 8, 2023

    @hugovk
    MemberAuthor

    Yep, fully defer to Sam to merge things in whatever order he likes, including closing #111864 if he wants to do it another way.

  3. itamaro commented on Nov 9, 2023

    @itamaro
    Contributor

    up to Sam of course, but perhaps invert it completely, and go with something like Py_GIL or Py_WITH_GIL?

  4. colesbury commented on Nov 9, 2023

    @colesbury
    Contributor

    I commented on @hugovk's PR (#111864 (comment)).

    Macros like Py_GIL or Py_WITH_GIL do not work well because they are not defined in older versions of Python (or pypy). That would make writing the #if pre-processor guards more difficult for extension code that targets multiple versions of Python.

  5. colesbury commented on Nov 9, 2023

    @colesbury
    Contributor

    I put an issue in the steering council GitHub repo: python/steering-council#214

  6. gvanrossum commented on Nov 9, 2023

    @gvanrossum
    Member

    I propose "multicore".

  7. hugovk commented on Nov 20, 2023

    @hugovk
    MemberAuthor
  8. added a commit that references this issue on Nov 20, 2023
  9. added a commit that references this issue on Nov 21, 2023
  10. added 2 commits that reference this issue on Nov 22, 2023
  11. added 3 commits that reference this issue on Feb 11, 2024
  12. added 3 commits that reference this issue on Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions