Message377437
It is a bug. Compiler explicitly checks if the number of nested "try" blocks does not exceed the limit of CO_MAXBLOCKS, but it does not count implicit "try" blocks inserted when your assign an exception in the "except" clause.
try:
...
except Exception as e:
...
is actually translated to
try:
...
except Exception:
try:
e = ...
...
finally:
e = None
del e
So we have double number of nested "try" blocks. |
|
Date |
User |
Action |
Args |
2020-09-24 06:59:53 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, Mark.Shannon, myzhang1029, iritkatriel |
2020-09-24 06:59:53 | serhiy.storchaka | set | messageid: <1600930793.16.0.563087189676.issue39934@roundup.psfhosted.org> |
2020-09-24 06:59:53 | serhiy.storchaka | link | issue39934 messages |
2020-09-24 06:59:52 | serhiy.storchaka | create | |
|