Skip to content

Commit 2aee131

Browse files
committed
list 'specialnames' as a special topic
1 parent 3294f92 commit 2aee131

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Lib/pydoc.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,8 +1838,8 @@ def _introdoc():
18381838
18391839
Enter the name of any module, keyword, symbol, or topic to get help on
18401840
writing Python programs and using Python modules. To get a list of
1841-
available modules, keywords, symbols, or topics, enter "modules",
1842-
"keywords", "symbols", or "topics".
1841+
available modules, keywords, symbols, special names, or topics, enter
1842+
"modules", "keywords", "symbols", "specialnames", or "topics".
18431843
{pyrepl_keys}
18441844
Each module also comes with a one-line summary of what it does; to list
18451845
the modules whose name or summary contain a given string such as "spam",
@@ -2189,7 +2189,7 @@ def help(self, request, is_cli=False):
21892189
elif request == 'keywords': self.listkeywords()
21902190
elif request == 'symbols': self.listsymbols()
21912191
elif request == 'topics': self.listtopics()
2192-
elif request in {'specialnames', 'dunders'}:
2192+
elif request == 'specialnames':
21932193
self.listdunders()
21942194
elif request == 'modules': self.listmodules()
21952195
elif request[:8] == 'modules ':
@@ -2976,7 +2976,8 @@ class BadUsage(Exception): pass
29762976
reference to a class or function within a module or module in a
29772977
package. If <name> contains a '{sep}', it is used as the path to a
29782978
Python source file to document. If name is 'keywords', 'topics',
2979-
or 'modules', a listing of these things is displayed.
2979+
'symbols', 'specialnames', or 'modules', a listing of these things is
2980+
displayed.
29802981
29812982
{cmd} -k <keyword>
29822983
Search for a keyword in the synopsis lines of all available modules.

0 commit comments

Comments
 (0)