Message383252
| Author |
xxm |
| Recipients |
ronaldoussoren, xxm |
| Date |
2020年12月17日.16:33:57 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1608222837.8.0.0595818813816.issue42652@roundup.psfhosted.org> |
| In-reply-to |
| Content |
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? |
|
History
|
|---|
| 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 |
|