Skip to content

[3.13] gh-133503: clarify compileall -s/-p docs (GH-134756) #134996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-133503: clarify compileall -s/-p docs (GH-134756)
(cherry picked from commit fe6f8a3)

Co-authored-by: Rihaan Meher <meherrihaan@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
  • Loading branch information
2 people authored and miss-islington committed Jun 1, 2025
commit e6c6f9e1d6ff94df70b3d4213cdaa5aa729be0d9
13 changes: 10 additions & 3 deletions Doc/library/compileall.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,18 @@ compile Python sources.
executed.

.. option:: -s strip_prefix

Remove the given prefix from paths recorded in the ``.pyc`` files.
Paths are made relative to the prefix.

This option can be used with ``-p`` but not with ``-d``.

.. option:: -p prepend_prefix

Remove (``-s``) or append (``-p``) the given prefix of paths
recorded in the ``.pyc`` files.
Cannot be combined with ``-d``.
Prepend the given prefix to paths recorded in the ``.pyc`` files.
Use ``-p /`` to make the paths absolute.

This option can be used with ``-s`` but not with ``-d``.

.. option:: -x regex

Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy