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 sobolevn
Recipients Dennis Sweeney, Rotem Yaari, Yury.Selivanov, chris.jerdonek, georg.brandl, iritkatriel, larsonreever, ncoghlan, python-dev, serhiy.storchaka, sobolevn, terry.reedy, yselivanov
Date 2021-08-09.17:20:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1628529654.41.0.146899603719.issue25782@roundup.psfhosted.org>
In-reply-to
Content
There's also a similar case with python3.9:

```python
>>> class MyError(Exception):
...   ...
... 
>>> e = MyError('e')
>>> e.__context__ = e
>>> 
>>> try:
...   raise e
... except MyError:
...   print('done')
... 
done  # hangs after this
^C^Z
```

The same code works with python3.8
We got hit by this in RustPython: https://github.com/RustPython/RustPython/pull/2820
History
Date User Action Args
2021-08-09 17:20:54sobolevnsetrecipients: + sobolevn, georg.brandl, terry.reedy, ncoghlan, chris.jerdonek, Yury.Selivanov, python-dev, serhiy.storchaka, yselivanov, Rotem Yaari, larsonreever, Dennis Sweeney, iritkatriel
2021-08-09 17:20:54sobolevnsetmessageid: <1628529654.41.0.146899603719.issue25782@roundup.psfhosted.org>
2021-08-09 17:20:54sobolevnlinkissue25782 messages
2021-08-09 17:20:54sobolevncreate