MCPcopy Index your code
hub / github.com/RustPython/RustPython / Helper

Class Helper

Lib/pydoc.py:1856–2254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1854 ''')
1855
1856class Helper:
1857
1858 # These dictionaries map a topic name to either an alias, or a tuple
1859 # (label, seealso-items). The "label" is the label of the corresponding
1860 # section in the .rst file under Doc/ and an index into the dictionary
1861 # in pydoc_data/topics.py.
1862 #
1863 # CAUTION: if you change one of these dictionaries, be sure to adapt the
1864 # list of needed labels in Doc/tools/extensions/pyspecific.py and
1865 # regenerate the pydoc_data/topics.py file by running
1866 # make pydoc-topics
1867 # in Doc/ and copying the output file into the Lib/ directory.
1868
1869 keywords = {
1870 'False': '',
1871 'None': '',
1872 'True': '',
1873 'and': 'BOOLEAN',
1874 'as': 'with',
1875 'assert': ('assert', ''),
1876 'async': ('async', ''),
1877 'await': ('await', ''),
1878 'break': ('break', 'while for'),
1879 'class': ('class', 'CLASSES SPECIALMETHODS'),
1880 'continue': ('continue', 'while for'),
1881 'def': ('function', ''),
1882 'del': ('del', 'BASICMETHODS'),
1883 'elif': 'if',
1884 'else': ('else', 'while for'),
1885 'except': 'try',
1886 'finally': 'try',
1887 'for': ('for', 'break continue while'),
1888 'from': 'import',
1889 'global': ('global', 'nonlocal NAMESPACES'),
1890 'if': ('if', 'TRUTHVALUE'),
1891 'import': ('import', 'MODULES'),
1892 'in': ('in', 'SEQUENCEMETHODS'),
1893 'is': 'COMPARISON',
1894 'lambda': ('lambda', 'FUNCTIONS'),
1895 'nonlocal': ('nonlocal', 'global NAMESPACES'),
1896 'not': 'BOOLEAN',
1897 'or': 'BOOLEAN',
1898 'pass': ('pass', ''),
1899 'raise': ('raise', 'EXCEPTIONS'),
1900 'return': ('return', 'FUNCTIONS'),
1901 'try': ('try', 'EXCEPTIONS'),
1902 'while': ('while', 'break continue if TRUTHVALUE'),
1903 'with': ('with', 'CONTEXTMANAGERS EXCEPTIONS yield'),
1904 'yield': ('yield', ''),
1905 }
1906 # Either add symbols to this dictionary or to the symbols dictionary
1907 # directly: Whichever is easier. They are merged later.
1908 _strprefixes = [p + q for p in ('b', 'f', 'r', 'u') for q in ("'", '"')]
1909 _symbols_inverse = {
1910 'STRINGS' : ("'", "'''", '"', '"""', *_strprefixes),
1911 'OPERATORS' : ('+', '-', '*', '**', '/', '//', '%', '<<', '>>', '&',
1912 '|', '^', '~', '<', '>', '<=', '>=', '==', '!=', '<>'),
1913 'COMPARISON' : ('<', '>', '<=', '>=', '==', '!=', '<>'),

Callers 2

pydoc.pyFile · 0.70
html_topicpageFunction · 0.70

Calls 2

itemsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected