Skip to content

Correct typos in runpy.run_path documentation#151230

Merged
FFY00 merged 2 commits into
python:mainfrom
underscore-andthereitgoes:main
Jun 22, 2026
Merged

Correct typos in runpy.run_path documentation#151230
FFY00 merged 2 commits into
python:mainfrom
underscore-andthereitgoes:main

Conversation

@underscore-andthereitgoes

Copy link
Copy Markdown

The documentation for runpy.run_path refers to a parameter called file_path, which doesn't exist in the call spec. However, path_name exists, and it is implied that file_path actually refers to path_name.

I considered this a typo and did not bother creating an issue.

The documentation for runpy.run_path refers to a parameter called *file_path*, which doesn't exist in the call spec. However, *path_name* exists, and it is implied that *file_path* actually refers to *path_name*.
@python-cla-bot

python-cla-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Jun 10, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Jun 10, 2026
@read-the-docs-community

read-the-docs-community Bot commented Jun 10, 2026

Copy link
Copy Markdown

@picnixz

picnixz commented Jun 10, 2026

Copy link
Copy Markdown
Member

What is the parameter name in the Python file itself (not the rst)?

@picnixz picnixz changed the title (No Issue) *file_path* -> *path_name* in runpy.rst Correct typos in runpy.run_path documentation Jun 10, 2026
@underscore-andthereitgoes

underscore-andthereitgoes commented Jun 10, 2026

Copy link
Copy Markdown
Author

What is the parameter name in the Python file itself (not the rst)?

path_name, same as the corrected version

see Lib/runpy.py:267

@FFY00 FFY00 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FFY00 FFY00 merged commit ff275f0 into python:main Jun 22, 2026
34 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants