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 yselivanov
Recipients gvanrossum, ncoghlan, oconnor663, vstinner, yselivanov
Date 2015-12-02.16:59:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449075542.27.0.69375824538.issue25779@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a minimal test to reproduce:

    import reprlib


    def main():
        if 0:
            yield
        raise RuntimeError


    m = main()
    try:
        m.send(None)
    except RuntimeError as ex:
        ex.__context__ = ex
        reprlib.repr(ex)
        

Looks like it's a bug in reprlib.  It's not related to PEP 492/479.  

It's also reproducible in Python 3.4 and 3.3.

Nick, ExitStack does this (indirectly) 'ex.__context__ = ex' thing -- I think that's a bug of contextlib.
History
Date User Action Args
2015-12-02 16:59:02yselivanovsetrecipients: + yselivanov, gvanrossum, ncoghlan, vstinner, oconnor663
2015-12-02 16:59:02yselivanovsetmessageid: <1449075542.27.0.69375824538.issue25779@psf.upfronthosting.co.za>
2015-12-02 16:59:02yselivanovlinkissue25779 messages
2015-12-02 16:59:02yselivanovcreate