Author xxm
Recipients stestagg, xxm
Date 2020-12-29.03:31:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609212674.81.0.534400170494.issue42762@roundup.psfhosted.org>
In-reply-to
Content
Thanks for your kind explanation! My description is a little confusing. Sorry about that. The problem here is that the program should stop when the exception is caught whatever the exception is. (I think bpo-25612 (#1773) fixed exception selection problems and right exception can be caught) The fact is this program will fall into an infinite loop. Error messages are printed in a dead loop. The program doesn't stop. This is not normal. There will be no loops in Python 3.5 and 3.6 (Attached output in Python 3.5 and 3.6). 

 

Output on Python 3.5,3.6 (all errors are printed without any loop )
-----------------------------------------------------
Exception ignored in: <generator object foo at 0x7f4cde5b8b48>
RuntimeError: generator ignored GeneratorExit
Traceback (most recent call last):
  File "/home/xxm/Desktop/nameChanging/report/test1.py", line 248, in <module>
    print(i)
NameError: name 'i' is not defined
Exception ignored in: <generator object foo at 0x7f4cde5b8bf8>
RuntimeError: generator ignored GeneratorExit
Exception ignored in: <generator object foo at 0x7f4cde5b8ca8>
RuntimeError: generator ignored GeneratorExit
--------------------------------------------------------
History
Date User Action Args
2020-12-29 03:31:14xxmsetrecipients: + xxm, stestagg
2020-12-29 03:31:14xxmsetmessageid: <1609212674.81.0.534400170494.issue42762@roundup.psfhosted.org>
2020-12-29 03:31:14xxmlinkissue42762 messages
2020-12-29 03:31:14xxmcreate