Skip to content

Correct typos in runpy.run_path documentation#151230

Open
underscore-andthereitgoes wants to merge 2 commits into
python:mainfrom
underscore-andthereitgoes:main
Open

Correct typos in runpy.run_path documentation#151230
underscore-andthereitgoes wants to merge 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

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33072822 | 📁 Comparing 9f2b308 against main (7a014f4)

  🔍 Preview build  

1 file changed
± library/runpy.html

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants