Skip to content

Commit 4ed0e72

Browse files
committed
suggest online help as well if we can't find something
1 parent 1bc0227 commit 4ed0e72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/pydoc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1746,7 +1746,8 @@ def resolve(thing, forceload=0):
17461746
raise ImportError('''\
17471747
No Python documentation found for %r.
17481748
%sUse help() to get the interactive help utility.
1749-
Use help(str) for help on the str class.''' % (thing, special))
1749+
Use help(str) for help on the str class.
1750+
Additional documentation is available online at https://docs.python.org/%s.%s/''' % (thing, special, *sys.version_info[:2]))
17501751
return object, thing
17511752
else:
17521753
name = getattr(thing, '__name__', None)

0 commit comments

Comments
 (0)