mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Issue #19980: Improved help() for non-recognized strings. help('') now
shows the help on str. help('help') now shows the help on help(). Original patch by Mark Lawrence.
This commit is contained in:
parent
e92951f8da
commit
1c205518a3
4 changed files with 20 additions and 5 deletions
|
@ -256,7 +256,10 @@ expected_html_data_docstrings = tuple(s.replace(' ', ' ')
|
|||
for s in expected_data_docstrings)
|
||||
|
||||
# output pattern for missing module
|
||||
missing_pattern = "no Python documentation found for '%s'"
|
||||
missing_pattern = '''\
|
||||
No Python documentation found for %r.
|
||||
Use help() to get the interactive help utility.
|
||||
Use help(str) for help on the str class.'''.replace('\n', os.linesep)
|
||||
|
||||
# output pattern for module with bad imports
|
||||
badimport_pattern = "problem in %s - ImportError: No module named %r"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue