MCPcopy Index your code
hub / github.com/python/cpython / _introdoc

Function _introdoc

Lib/pydoc.py:1780–1807  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1778
1779
1780def _introdoc():
1781 ver = '%d.%d' % sys.version_info[:2]
1782 if os.environ.get('PYTHON_BASIC_REPL'):
1783 pyrepl_keys = ''
1784 else:
1785 # Additional help for keyboard shortcuts if enhanced REPL is used.
1786 pyrepl_keys = '''
1787 You can use the following keyboard shortcuts at the main interpreter prompt.
1788 F1: enter interactive help, F2: enter history browsing mode, F3: enter paste
1789 mode (press again to exit).
1790 '''
1791 return textwrap.dedent(f'''\
1792 Welcome to Python {ver}'s help utility! If this is your first time using
1793 Python, you should definitely check out the tutorial at
1794 https://docs.python.org/{ver}/tutorial/.
1795
1796 Enter the name of any module, keyword, or topic to get help on writing
1797 Python programs and using Python modules. To get a list of available
1798 modules, keywords, symbols, or topics, enter "modules", "keywords",
1799 "symbols", or "topics".
1800 {pyrepl_keys}
1801 Each module also comes with a one-line summary of what it does; to list
1802 the modules whose name or summary contain a given string such as "spam",
1803 enter "modules spam".
1804
1805 To quit this help utility and return to the interpreter,
1806 enter "q", "quit" or "exit".
1807 ''')
1808
1809class Helper:
1810

Callers 1

introMethod · 0.85

Calls 2

getMethod · 0.45
dedentMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…