]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] bpo-32137: The repr of deeply nested dict now raises a RuntimeError (GH-4570...
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 2 Feb 2018 14:29:02 +0000 (16:29 +0200)
committerGitHub <noreply@github.com>
Fri, 2 Feb 2018 14:29:02 +0000 (16:29 +0200)
commitb7a2c17be8411bc4c7a2babdc650074c14204aa8
treee3816d8aa190bb23b8fa362deeb36153f05e9369
parentb60f43a0e6052b29517931eea591b0b29903f382
[2.7] bpo-32137: The repr of deeply nested dict now raises a RuntimeError (GH-4570) (#5493)

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