[Python-checkins] bpo-92336: [doc] clarify that the dfile is read by the traceback display code (GH-94409)

iritkatriel webhook-mailer at python.org
Wed Jun 29 15:24:50 EDT 2022


https://github.com/python/cpython/commit/68fb03249f3b17146db42b00a75718b823a2280c
commit: 68fb03249f3b17146db42b00a75718b823a2280c
branch: main
author: Irit Katriel <1055913+iritkatriel at users.noreply.github.com>
committer: iritkatriel <1055913+iritkatriel at users.noreply.github.com>
date: 2022-06-29T20:24:43+01:00
summary:

bpo-92336: [doc] clarify that the dfile is read by the traceback display code (GH-94409)

files:
M Doc/library/py_compile.rst

diff --git a/Doc/library/py_compile.rst b/Doc/library/py_compile.rst
index 4fba4cba4d356..69b93a3bdfcb2 100644
--- a/Doc/library/py_compile.rst
+++ b/Doc/library/py_compile.rst
@@ -35,8 +35,9 @@ byte-code cache files in the directory containing the source code.
    in ``.pyc``.
    For example, if *file* is ``/foo/bar/baz.py`` *cfile* will default to
    ``/foo/bar/__pycache__/baz.cpython-32.pyc`` for Python 3.2.  If *dfile* is
-   specified, it is used as the name of the source file in error messages
-   instead of *file*.  If *doraise* is true, a :exc:`PyCompileError` is raised
+   specified, it is used instead of *file* as the name of the source file from
+   which source lines are obtained for display in exception tracebacks.
+   If *doraise* is true, a :exc:`PyCompileError` is raised
    when an error is encountered while compiling *file*. If *doraise* is false
    (the default), an error string is written to ``sys.stderr``, but no exception
    is raised.  This function returns the path to byte-compiled file, i.e.



More information about the Python-checkins mailing list