-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-67248: Update cmd.py #92254
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
gh-67248: Update cmd.py #92254
Conversation
sort the miscellaneous topics
Every change to Python requires a NEWS entry. Please, add it using the blurb_it Web app or the blurb command-line tool. |
Looks reasonable! It looks like there are tests for some of this in https://github.com/python/cpython/blob/main/Lib/test/test_cmd.py -- might make sense to add a test that reflects this behavior change? I talked to @ericsnowcurrently here at the PyCon sprint about fixing the issue in |
rename 'help' to 'topics', change it from a dict to a set
Add tests for miscellaneous help topics
@carljm I've added terryjreedy's suggestions from the issue comments. OTOH, I've only added one misc topic, I guess I need to think of another to test sorting. |
add a second misc topic to test sorting also, the empty command tested with mycmd.cmdloop() was repeating a command issued with mycmd.onecmd(), so I moved it into the middle of the list of commands, to make the output more dependable.
sort the miscellaneous topics, per #67248