Message383252
In issue #42500, crashes is resulted by recursion and try-except. Program like following will crash the interpreter.
=====
def foo():
try:
1/0
except:
pass
foo()
foo()
=====
However with traceback module, program will no longer crash the interpreter. A recursive Error is returned as expected.
=====
import traceback
def foo():
try:
1/0
except:
traceback.print_exc()
foo()
foo()
=====
But it is still crash the interpreter in finally clause. I think this might be a new but and it is different from #42500. It should be related to traceback module, finally clause and recursion. what do you think? |
|
Date |
User |
Action |
Args |
2020-12-17 16:33:57 | xxm | set | recipients:
+ xxm, ronaldoussoren |
2020-12-17 16:33:57 | xxm | set | messageid: <1608222837.8.0.0595818813816.issue42652@roundup.psfhosted.org> |
2020-12-17 16:33:57 | xxm | link | issue42652 messages |
2020-12-17 16:33:57 | xxm | create | |
|