Message369594
but if exc variable is only available in except block why then it shadows
the function variable name?
On Fri, May 22, 2020 at 1:15 PM Christian Heimes <report@bugs.python.org>
wrote:
>
> Christian Heimes <lists@cheimes.de> added the comment:
>
> UnboundLocalError is a subclass of NameError. You are getting a more
> specific error here.
>
> >>> UnboundLocalError.__mro__
> (<class 'UnboundLocalError'>, <class 'NameError'>, <class 'Exception'>,
> <class 'BaseException'>, <class 'object'>)
>
> ----------
> nosy: +christian.heimes
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue40728>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2020-05-22 11:19:17 | oleksandr.suvorov | set | recipients:
+ oleksandr.suvorov, christian.heimes, Mark.Shannon, pablogsal |
2020-05-22 11:19:17 | oleksandr.suvorov | link | issue40728 messages |
2020-05-22 11:19:17 | oleksandr.suvorov | create | |
|