summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-11-20 19:54:36 (GMT)
committerGeorg Brandl <georg@python.org>2010-11-20 19:54:36 (GMT)
commit74abf6f873ff8fa37f7418c97ce2f0eb27ee09b6 (patch)
tree232c6a4f32a5240449388a49407a9e76d3494ffb
parent5a96b5241f8ff0badd0f2a95305d551e80847f1c (diff)
downloadcpython-74abf6f873ff8fa37f7418c97ce2f0eb27ee09b6.zip
cpython-74abf6f873ff8fa37f7418c97ce2f0eb27ee09b6.tar.gz
cpython-74abf6f873ff8fa37f7418c97ce2f0eb27ee09b6.tar.bz2
#9724: add nonlocal to pydoc topics.
-rwxr-xr-xLib/pydoc.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 9ede259..253b799 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -1552,12 +1552,13 @@ class Helper:
'finally': 'try',
'for': ('for', 'break continue while'),
'from': 'import',
- 'global': ('global', 'NAMESPACES'),
+ 'global': ('global', 'nonlocal NAMESPACES'),
'if': ('if', 'TRUTHVALUE'),
'import': ('import', 'MODULES'),
'in': ('in', 'SEQUENCEMETHODS'),
'is': 'COMPARISON',
'lambda': ('lambda', 'FUNCTIONS'),
+ 'nonlocal': ('nonlocal', 'global NAMESPACES'),
'not': 'BOOLEAN',
'or': 'BOOLEAN',
'pass': ('pass', ''),
@@ -1652,7 +1653,7 @@ class Helper:
'NUMBERMETHODS': ('numeric-types', 'NUMBERS AUGMENTEDASSIGNMENT '
'SPECIALMETHODS'),
'EXECUTION': ('execmodel', 'NAMESPACES DYNAMICFEATURES EXCEPTIONS'),
- 'NAMESPACES': ('naming', 'global ASSIGNMENT DELETION DYNAMICFEATURES'),
+ 'NAMESPACES': ('naming', 'global nonlocal ASSIGNMENT DELETION DYNAMICFEATURES'),
'DYNAMICFEATURES': ('dynamic-features', ''),
'SCOPING': 'NAMESPACES',
'FRAMES': 'NAMESPACES',