MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / Helper

Class Helper

tools/python-3.11.9-amd64/Lib/pydoc.py:1895–2302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1893 return
1894
1895class Helper:
1896
1897 # These dictionaries map a topic name to either an alias, or a tuple
1898 # (label, seealso-items). The "label" is the label of the corresponding
1899 # section in the .rst file under Doc/ and an index into the dictionary
1900 # in pydoc_data/topics.py.
1901 #
1902 # CAUTION: if you change one of these dictionaries, be sure to adapt the
1903 # list of needed labels in Doc/tools/extensions/pyspecific.py and
1904 # regenerate the pydoc_data/topics.py file by running
1905 # make pydoc-topics
1906 # in Doc/ and copying the output file into the Lib/ directory.
1907
1908 keywords = {
1909 'False': '',
1910 'None': '',
1911 'True': '',
1912 'and': 'BOOLEAN',
1913 'as': 'with',
1914 'assert': ('assert', ''),
1915 'async': ('async', ''),
1916 'await': ('await', ''),
1917 'break': ('break', 'while for'),
1918 'class': ('class', 'CLASSES SPECIALMETHODS'),
1919 'continue': ('continue', 'while for'),
1920 'def': ('function', ''),
1921 'del': ('del', 'BASICMETHODS'),
1922 'elif': 'if',
1923 'else': ('else', 'while for'),
1924 'except': 'try',
1925 'finally': 'try',
1926 'for': ('for', 'break continue while'),
1927 'from': 'import',
1928 'global': ('global', 'nonlocal NAMESPACES'),
1929 'if': ('if', 'TRUTHVALUE'),
1930 'import': ('import', 'MODULES'),
1931 'in': ('in', 'SEQUENCEMETHODS'),
1932 'is': 'COMPARISON',
1933 'lambda': ('lambda', 'FUNCTIONS'),
1934 'nonlocal': ('nonlocal', 'global NAMESPACES'),
1935 'not': 'BOOLEAN',
1936 'or': 'BOOLEAN',
1937 'pass': ('pass', ''),
1938 'raise': ('raise', 'EXCEPTIONS'),
1939 'return': ('return', 'FUNCTIONS'),
1940 'try': ('try', 'EXCEPTIONS'),
1941 'while': ('while', 'break continue if TRUTHVALUE'),
1942 'with': ('with', 'CONTEXTMANAGERS EXCEPTIONS yield'),
1943 'yield': ('yield', ''),
1944 }
1945 # Either add symbols to this dictionary or to the symbols dictionary
1946 # directly: Whichever is easier. They are merged later.
1947 _strprefixes = [p + q for p in ('b', 'f', 'r', 'u') for q in ("'", '"')]
1948 _symbols_inverse = {
1949 'STRINGS' : ("'", "'''", '"', '"""', *_strprefixes),
1950 'OPERATORS' : ('+', '-', '*', '**', '/', '//', '%', '<<', '>>', '&',
1951 '|', '^', '~', '<', '>', '<=', '>=', '==', '!=', '<>'),
1952 'COMPARISON' : ('<', '>', '<=', '>=', '==', '!=', '<>'),

Callers 2

pydoc.pyFile · 0.85
html_topicpageFunction · 0.85

Calls 2

itemsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected