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.

classification
Title: infinite loop in reprlib
Type: Stage:
Components: Library (Lib) Versions: Python 3.6, Python 3.3, Python 3.4, Python 3.5
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: oconnor663, yselivanov
Priority: normal Keywords:

Created on 2015-12-02 17:01 by yselivanov, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg255727 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2015-12-02 17:01
The below code blocks Python eval loop and makes it unresponsive to signals (like ^C).

    import reprlib

    try:
        raise RuntimeError
    except RuntimeError as ex:
        ex.__context__ = ex
        reprlib.repr(ex)
msg255729 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2015-12-02 17:12
This isn't a bug of reprlib -- it's something in the core. Will create a separate issue for this.

    try:
        raise Exception
    except Exception as ex:
        ex.__context__ = ex
        hasattr(1, 'aa')
History
Date User Action Args
2022-04-11 14:58:24adminsetgithub: 69967
2015-12-02 17:21:46oconnor663setnosy: + oconnor663
2015-12-02 17:14:19yselivanovunlinkissue25779 superseder
2015-12-02 17:12:06yselivanovsetstatus: open -> closed
resolution: not a bug
messages: + msg255729
2015-12-02 17:03:22yselivanovlinkissue25779 superseder
2015-12-02 17:01:44yselivanovcreate