Nikita Sobolev <m...@sobolevn.me> added the comment:
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 ---------- nosy: +sobolevn _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue25782> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com