]> granicus.if.org Git - python/commit
bpo-32137: The repr of deeply nested dict now raises a RecursionError (GH-4570) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 1 Feb 2018 11:57:28 +0000 (03:57 -0800)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 1 Feb 2018 11:57:28 +0000 (13:57 +0200)
commit688b6dec4e8847a154ef27257069291175764794
treedc9b066bff693558e1c406b531dc6c024dff4394
parent581ce25e1ffa374e62547ef266b6326bee0c54e5
bpo-32137: The repr of deeply nested dict now raises a RecursionError (GH-4570) (GH-4689)

instead of crashing due to a stack overflow.

This perhaps will fix similar problems in other extension types.
(cherry picked from commit 1fb72d2ad243c965d4432b4e93884064001a2607)
Lib/test/list_tests.py
Lib/test/mapping_tests.py
Lib/test/test_dict.py
Misc/NEWS.d/next/Core and Builtins/2017-11-26-14-36-30.bpo-32137.Stj5nL.rst [new file with mode: 0644]
Objects/listobject.c
Objects/object.c
Objects/tupleobject.c