8000 gh-70979: Fix runpy.run_path parameter name in docs (GH-32265) · python/cpython@f1e989b · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f1e989b

Browse files
gh-70979: Fix runpy.run_path parameter name in docs (GH-32265)
Noticed while reviewing GH-30729.
1 parent 1fcb39e commit f1e989b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/runpy.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ The :mod:`runpy` module provides two functions:
9393
run this way, as well as ensuring the real module name is always
9494
accessible as ``__spec__.name``.
9595

96-
.. function:: run_path(file_path, init_globals=None, run_name=None)
96+
.. function:: run_path(path_name, init_globals=None, run_name=None)
9797

9898
.. index::
9999
module: __main__
@@ -140,7 +140,7 @@ The :mod:`runpy` module provides two functions:
140140

141141
A number of alterations are also made to the :mod:`sys` module. Firstly,
142142
``sys.path`` may be altered as described above. ``sys.argv[0]`` is updated
143-
with the value of ``file_path`` and ``sys.modules[__name__]`` is updated
143+
with the value of ``path_name`` and ``sys.modules[__name__]`` is updated
144144
with a temporary module object for the module being executed. All
145145
modifications to items in :mod:`sys` are reverted before the function
146146
returns.

0 commit comments

Comments
 (0)
0