Yury Selivanov added the comment: Created another issue for the reprlib bug: issue 25781. It appears we don't even need a generator:
import reprlib try: raise RuntimeError except RuntimeError as ex: ex.__context__ = ex reprlib.repr(ex) Closing this one with "not a bug". ---------- resolution: -> not a bug status: open -> closed superseder: -> infinite loop in reprlib _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25779> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com