Skip to content

Conversation

rickeylev
Copy link
Contributor

@rickeylev rickeylev commented May 6, 2025

This corrects the docs about how PYTHONEXECUTABLE is handled, specifically:

  • It is not Mac-specific. This was dropped in 3.11
  • The -I and -E options respect it.

Along the way:

  • Fix doc that PYTHONEXECUTABLE affects sys.executable, not sys.argv[0]

Fixes #133525


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

@python-cla-bot
Copy link

python-cla-bot bot commented May 6, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

Copy link
Member

@StanFromIreland StanFromIreland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the styling, it should be:

:envvar:`PYTHONEXECUTABLE`

and incline code should use double backticks i.e.

``-E``

@rickeylev
Copy link
Contributor Author

Thanks @StanFromIreland !

Done: Added the sphinx roles to the backtick'd symbols. Instead of double backticks for -E, -I, I added :option: to them.

PTAL

Co-authored-by: Stan Ulbrych <[email protected]>
@rickeylev
Copy link
Contributor Author

Oops, thanks for catching that. Suggestion applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

PYTHONEXECUTABLE envvar incorrectly doc'd as mac-only and ignored by -E/-I

3 participants