| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Should the Py_GIL_DISABLED macro be renamed to Py_FREE_THREADING? See the steering council decision: python/steering-council#221 (comment) |
Sorry, something went wrong.
|
Ah okay, python/steering-council#221 (comment) was announced 2 hours ago. |
Sorry, something went wrong.
Naming is hard :-) The update is that the Steering Council took a decision. But this PR is not about Py_GIL_DISABLED macro which can be renamed in a following PR if needed. |
Sorry, something went wrong.
|
I'm confused. Didn't the SC decision explicitly mention that Py_GIL_DISABLED is ok? |
Sorry, something went wrong.
|
I have the same opinion as @itamaro |
Sorry, something went wrong.
No, we keep Py_GIL_DISABLED for the macro. The SC said yesterday:
python/steering-council#221 (comment) This PR doesn't touch the macro though. It changes a constant used by unit tests. This isn't exposed to users, so we could keep it as is, but are also free to change it. However, because the constant is directly looking up the macro value from sysconfig, I'd think I'd prefer to keep them the same. |
Sorry, something went wrong.
| # --disable-gil | ||
| if sysconfig.get_config_var('Py_GIL_DISABLED'): | ||
| build.append("nogil") | ||
| build.append("freethreading") |
There was a problem hiding this comment.
?
| build.append("freethreading") | |
| build.append("gil_disabled") |
Sorry, something went wrong.
|
I updated the PR. Please review it again.
Oh ok. I read the announcement too quickly, I missed the part about Py_GIL_DISABLED.
Ok, I updated my PR for that. @hugovk proposed build.append("gil_disabled"). From what I understood, anything displayed to the user should not associate free threading with negative term such as "disabled". I prefer to reuse the "official term": "free threading". I added an underscore for readability: build.append("free_threading"). |
Sorry, something went wrong.
|
Merged, thanks for reviews. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Rename support.Py_GIL_DISABLED to support.FREE_THREADING.
📚 Documentation preview 📚: https://cpython-previews--112780.org.readthedocs.build/