Skip to content

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented May 7, 2024

This PR renames:

  • env var PYTHONPERFJITSUPPORT -> PYTHON_PERF_JIT_SUPPORT
  • -X perfjit -> -X perf_jit

From Python 3.13, new environment variables should use underscores:

I don't think we have a policy for -X options, and we have a mix (I think newer ones tend to use underscores?), but I recommend using an underscore here too for the same accessibility and readability reasons as env vars. Plus consistency with the env var.

For example, we added PYTHON_CPU_COUNT and -X cpu_count in 3.13.

cc @pablogsal


📚 Documentation preview 📚: https://cpython-previews--118693.org.readthedocs.build/

@hugovk hugovk force-pushed the PYTHON_PERF_JIT_SUPPORT branch from 13f27bb to 54db163 Compare May 7, 2024 09:53
@hugovk hugovk changed the title gh-118518: Rename PYTHONPERFJITSUPPORT and -X perfjit gh-118518: Rename PYTHONPERFJITSUPPORT and -X perfjit with underscores May 7, 2024
@pablogsal pablogsal enabled auto-merge (squash) May 7, 2024 10:35
@hugovk
Copy link
Member Author

hugovk commented May 7, 2024

@pablogsal pablogsal merged commit 0485922 into python:main May 7, 2024
@hugovk hugovk deleted the PYTHON_PERF_JIT_SUPPORT branch May 7, 2024 11:48
SonicField pushed a commit to SonicField/cpython that referenced this pull request May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants