Skip to content

Commit 6be87f8

Browse files
authored
gh-133503 Update compileall.rst again for clarity
1 parent 5442260 commit 6be87f8

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Doc/library/compileall.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,17 @@ compile Python sources.
5757

5858
.. option:: -s strip_prefix
5959

60-
Removing the prefix makes paths relative to it.
61-
You can remove (``s``) the given prefix of paths recorded in the ``.pyc`` files.
62-
Can be used with ``p``
60+
Remove the given prefix from paths recorded in the ``.pyc`` files.
61+
Paths are made relative to the prefix.
62+
63+
This option can be used with ``-p`` but not with ``-d``.
6364

6465
.. option:: -p prepend_prefix
6566

66-
You can append (``-p``) the given prefix of paths recorded in the ``.pyc`` files.
67-
Cannot be combined with ``-d``.
68-
Can be used with ``s``
69-
``-p /`` can be used to make the path absolute.
67+
Append the given prefix to paths recorded in the ``.pyc`` files.
68+
Use ``-p /`` to make the paths absolute.
69+
70+
This option can be used with ``-s`` but not with ``-d``.
7071

7172
.. option:: -x regex
7273

0 commit comments

Comments
 (0)