[issue42801] Exception catching function crashes on recursive list

2021-06-09 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.10, Python 3.8 -Python 3.7 ___ Python tracker ___

[issue42801] Exception catching function crashes on recursive list

2021-01-01 Thread Steve Stagg
Steve Stagg added the comment: This is fixed by https://github.com/python/cpython/pull/23744 -- nosy: +stestagg ___ Python tracker ___

[issue42801] Exception catching function crashes on recursive list

2021-01-01 Thread Dong-hee Na
Dong-hee Na added the comment: FYI,I am able to reproduce on Python 3.9 The master version is not able to reproduce. -- nosy: +corona10 ___ Python tracker ___

[issue42801] Exception catching function crashes on recursive list

2020-12-31 Thread Steven D'Aprano
New submission from Steven D'Aprano : This function crashes on the following recursive list: def length(x): try: return sum(length(i) for i in x) except Exception: return 1 a = [[1, 2, 3], [4, 5, 6]] a.append(a) length(a) Crashes: Fatal Python error: