This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xxm
Recipients stestagg, xxm
Date 2020-12-29.03:31:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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/", line 248, in <module>
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
Date User Action Args
2020-12-29 03:31:14xxmsetrecipients: + xxm, stestagg
2020-12-29 03:31:14xxmsetmessageid: <>
2020-12-29 03:31:14xxmlinkissue42762 messages
2020-12-29 03:31:14xxmcreate