FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-118518: Rename `PYTHONPERFJITSUPPORT` and `-X perfjit` with underscores by hugovk · Pull Request #118693 · python/cpython · GitHub

/ cpython Public

gh-118518: Rename PYTHONPERFJITSUPPORT and -X perfjit with underscores - #118693

Merged
pablogsal merged 2 commits into
python:mainfrom
hugovk:PYTHON_PERF_JIT_SUPPORT
May 7, 2024
Merged

gh-118518: Rename PYTHONPERFJITSUPPORT and -X perfjit with underscores#118693
pablogsal merged 2 commits into
python:mainfrom
hugovk:PYTHON_PERF_JIT_SUPPORT

Conversation

hugovk commented May 7, 2024
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

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 force-pushed the PYTHON_PERF_JIT_SUPPORT branch from 13f27bb to 54db163 Compare May 7, 2024 09:53
hugovk changed the title gh-118518: Rename PYTHONPERFJITSUPPORT and -X perfjit gh-118518: Rename PYTHONPERFJITSUPPORT and -X perfjit with underscores May 7, 2024
pablogsal enabled auto-merge (squash) May 7, 2024 10:35

hugovk commented May 7, 2024

Copy link
Copy Markdown
Member Author

The TSAN job timed out: https://github.com/python/cpython/actions/runs/8983317059/job/24672835971?pr=118693

I've restarted it.

pablogsal merged commit 0485922 into python:main May 7, 2024
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL