Skip to content

Commit 5084a64

Browse files
bpo-92336: [doc] clarify that the dfile is read by the traceback display code (GH-94409)
(cherry picked from commit 68fb032) Co-authored-by: Irit Katriel <[email protected]>
1 parent cbd562f commit 5084a64

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/py_compile.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ byte-code cache files in the directory containing the source code.
3535
in ``.pyc``.
3636
For example, if *file* is ``/foo/bar/baz.py`` *cfile* will default to
3737
``/foo/bar/__pycache__/baz.cpython-32.pyc`` for Python 3.2. If *dfile* is
38-
specified, it is used as the name of the source file in error messages
39-
instead of *file*. If *doraise* is true, a :exc:`PyCompileError` is raised
38+
specified, it is used instead of *file* as the name of the source file from
39+
which source lines are obtained for display in exception tracebacks.
40+
If *doraise* is true, a :exc:`PyCompileError` is raised
4041
when an error is encountered while compiling *file*. If *doraise* is false
4142
(the default), an error string is written to ``sys.stderr``, but no exception
4243
is raised. This function returns the path to byte-compiled file, i.e.

0 commit comments

Comments
 (0)