8000 [3.12] gh-112165: Fix typo in `__main__.py` (GH-112183) by miss-islington · Pull Request #112184 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.12] gh-112165: Fix typo in __main__.py (GH-112183) #112184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-112165: Fix typo in __main__.py (GH-112183)
Change '[2]' to '[1]' to get second argument.
(cherry picked from commit 8cd70ee)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
  • Loading branch information
terryjreedy authored and miss-islington committed Nov 17, 2023
commit 6b91c4628928ffca4c224b46ad2828efd2fbeb06
2 changes: 1 addition & 1 deletion Doc/library/__main__.rst
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ students::
import sys
from .student import search_students

student_name = sys.argv[2] if len(sys.argv) >= 2 else ''
student_name = sys.argv[1] if len(sys.argv) >= 2 else ''
print(f'Found student: {search_students(student_name)}')

Note that ``from .student import search_students`` is an example of a relative
Expand Down
0