diff options
author | Tian Gao <gaogaotiantian@hotmail.com> | 2023-04-11 15:40:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-11 15:40:30 -0700 |
commit | 2f41a009b7311a4b44bae5b3583cde3d6d10d8d1 (patch) | |
tree | 3e4e9df8a4008e41e78bb9f244f65eba6d5ee298 /Lib/logging/config.py | |
parent | 96663875b2ea55c65e83551cdb741bbcdcaa7f21 (diff) | |
download | cpython-2f41a009b7311a4b44bae5b3583cde3d6d10d8d1.tar.gz cpython-2f41a009b7311a4b44bae5b3583cde3d6d10d8d1.zip |
gh-103143: Polish pdb help messages and doc strings (GH-103144)
* Made all the command part of the docstring match the official documentation
* Always have a space between the command and the description in docstring
* Added a helper function to format the help message
Before:
```
(Pdb) h a
a(rgs)
Print the argument list of the current function.
(Pdb) h commands
commands [bpnumber]
(com) ...
(com) end
(Pdb)
...
(Pdb) h interact
interact
Start an interactive interpreter whose global namespace
contains all the (global and local) names found in the current scope.
```
After
```
(Pdb) h a
Usage: a(rgs)
Print the argument list of the current function.
(Pdb) h commands
Usage: (Pdb) commands [bpnumber]
(com) ...
(com) end
(Pdb)
...
(Pdb) h interact
Usage: interact
Start an interactive interpreter whose global namespace
contains all the (global and local) names found in the current scope.
```
Automerge-Triggered-By: GH:brandtbucher
Diffstat (limited to 'Lib/logging/config.py')
0 files changed, 0 insertions, 0 deletions