New submission from jason kirtland <j...@discorporate.us>: repr of circular graphs of collections.OrderedDicts fails with 'RuntimeError: maximum recursion depth exceeded while calling a Python object'.
>>> from collections import OrderedDict >>> left, right = OrderedDict(), OrderedDict() >>> left['other'] = right >>> right['other'] = left >>> left Traceback (most recent call last): File "<stdin>", line 1, in <module> ... File "lib/python2.7/collections.py", line 137, in __repr__ return '%s(%r)' % (self.__class__.__name__, self.items()) RuntimeError: maximum recursion depth exceeded in __subclasscheck__ ---------- components: Library (Lib) files: odictcyclerepr.py messages: 116037 nosy: jek priority: normal severity: normal status: open title: OrderedDict ref cycles break repr() type: behavior versions: Python 2.7, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file18835/odictcyclerepr.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9826> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com