diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/exceptions.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/exceptions.py b/Lib/exceptions.py index e943f7b..af752d9 100644 --- a/Lib/exceptions.py +++ b/Lib/exceptions.py @@ -40,6 +40,8 @@ Exception(*) | +-- NotImplementedError(*) | +-- NameError + | | + | +-- UnboundLocalError(*) +-- AttributeError +-- SyntaxError +-- TypeError @@ -208,7 +210,11 @@ class AttributeError(StandardError): pass class NameError(StandardError): - """Name not found locally or globally.""" + """Name not found globally.""" + pass + +class UnboundLocalError(NameError): + """Local name referenced but not bound to a value.""" pass class MemoryError(StandardError): |