Message369597
> but if exc variable is only available in except block why then it shadows
the function variable name?
Because the except block does not create a new scope and therefore when you do 'except as x' it does an assignment to x in the same scope as the function. |
|
Date |
User |
Action |
Args |
2020-05-22 11:21:09 | pablogsal | set | recipients:
+ pablogsal, Mark.Shannon, oleksandr.suvorov |
2020-05-22 11:21:09 | pablogsal | set | messageid: <1590146469.03.0.151737456525.issue40728@roundup.psfhosted.org> |
2020-05-22 11:21:09 | pablogsal | link | issue40728 messages |
2020-05-22 11:21:09 | pablogsal | create | |
|