mirror of https://github.com/python/cpython
#9724: add nonlocal to pydoc topics.
This commit is contained in:
parent
5a96b5241f
commit
74abf6f873
|
@ -1552,12 +1552,13 @@ class Helper:
|
||||||
'finally': 'try',
|
'finally': 'try',
|
||||||
'for': ('for', 'break continue while'),
|
'for': ('for', 'break continue while'),
|
||||||
'from': 'import',
|
'from': 'import',
|
||||||
'global': ('global', 'NAMESPACES'),
|
'global': ('global', 'nonlocal NAMESPACES'),
|
||||||
'if': ('if', 'TRUTHVALUE'),
|
'if': ('if', 'TRUTHVALUE'),
|
||||||
'import': ('import', 'MODULES'),
|
'import': ('import', 'MODULES'),
|
||||||
'in': ('in', 'SEQUENCEMETHODS'),
|
'in': ('in', 'SEQUENCEMETHODS'),
|
||||||
'is': 'COMPARISON',
|
'is': 'COMPARISON',
|
||||||
'lambda': ('lambda', 'FUNCTIONS'),
|
'lambda': ('lambda', 'FUNCTIONS'),
|
||||||
|
'nonlocal': ('nonlocal', 'global NAMESPACES'),
|
||||||
'not': 'BOOLEAN',
|
'not': 'BOOLEAN',
|
||||||
'or': 'BOOLEAN',
|
'or': 'BOOLEAN',
|
||||||
'pass': ('pass', ''),
|
'pass': ('pass', ''),
|
||||||
|
@ -1652,7 +1653,7 @@ class Helper:
|
||||||
'NUMBERMETHODS': ('numeric-types', 'NUMBERS AUGMENTEDASSIGNMENT '
|
'NUMBERMETHODS': ('numeric-types', 'NUMBERS AUGMENTEDASSIGNMENT '
|
||||||
'SPECIALMETHODS'),
|
'SPECIALMETHODS'),
|
||||||
'EXECUTION': ('execmodel', 'NAMESPACES DYNAMICFEATURES EXCEPTIONS'),
|
'EXECUTION': ('execmodel', 'NAMESPACES DYNAMICFEATURES EXCEPTIONS'),
|
||||||
'NAMESPACES': ('naming', 'global ASSIGNMENT DELETION DYNAMICFEATURES'),
|
'NAMESPACES': ('naming', 'global nonlocal ASSIGNMENT DELETION DYNAMICFEATURES'),
|
||||||
'DYNAMICFEATURES': ('dynamic-features', ''),
|
'DYNAMICFEATURES': ('dynamic-features', ''),
|
||||||
'SCOPING': 'NAMESPACES',
|
'SCOPING': 'NAMESPACES',
|
||||||
'FRAMES': 'NAMESPACES',
|
'FRAMES': 'NAMESPACES',
|
||||||
|
|
Loading…
Reference in New Issue