Skip to content

Commit 58de00a

Browse files
committed
add more built-in modules to SKIP_DUNDER_HELP
1 parent e1c7fab commit 58de00a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎Lib/pydoc.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,9 +1847,11 @@ def _introdoc():
18471847
enter "q", "quit" or "exit".
18481848
''')
18491849

1850-
SKIP_DUNDER_HELP = {
1850+
SKIP_DUNDER_HELP = frozenset({
18511851
'__future__',
1852-
}
1852+
'__hello__',
1853+
'__phello__',
1854+
})
18531855

18541856
def _is_dunder_name(x):
18551857
return isinstance(x, str) and x.isidentifier() and len(x) > 4 and x[:2] == x[-2:] == '__'

0 commit comments

Comments
 (0)