cpython/Objects
Miss Islington (bot) fbf7aac36b
bpo-18533: Avoid RecursionError from repr() of recursive dictview (GH-4823)
dictview_repr(): Use a Py_ReprEnter() / Py_ReprLeave() pair to check
for recursion, and produce "..." if so.

test_recursive_repr(): Check for the string rather than a
RecursionError.  (Test cannot be any tighter as contents are
implementation-dependent.)

test_deeply_nested_repr(): Add new test, replacing the original
test_recursive_repr().  It checks that a RecursionError is raised in
the case of a non-recursive but deeply nested structure.  (Very
similar to what test_repr_deep() in test/test_dict.py does for a
normal dict.)

OrderedDictTests: Add new test case, to test behavior on OrderedDict
instances containing their own values() or items().
(cherry picked from commit d7773d92bd)
2018-02-26 06:42:00 -08:00
..
clinic [3.6] bpo-20047: Make bytearray methods partition() and rpartition() rejecting (GH-4158) (#4162) 2017-10-29 12:24:45 +02:00
stringlib [3.6] bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0 (#3518) 2017-09-12 16:09:44 -07:00
README Issue #18093: Factor out the programs that embed the runtime 2014-07-25 21:52:14 +10:00
abstract.c [3.6] bpo-31232: Backport custom print rshift message (GH-3155) 2017-08-19 16:59:38 +10:00
accu.c Issue #14387: Do not include accu.h from Python.h. 2012-03-22 14:38:16 +01:00
boolobject.c
bytearrayobject.c [3.6] bpo-30923, bpo-31279: Fix GCC warnings (#4620) 2017-11-30 00:00:35 +01:00
bytes_methods.c [3.6] bpo-29549: Fixes docstring for str.index (GH-256) (GH-1028) 2017-04-09 15:17:06 -07:00
bytesobject.c [3.6] bpo-20047: Make bytearray methods partition() and rpartition() rejecting (GH-4158) (#4162) 2017-10-29 12:24:45 +02:00
capsule.c
cellobject.c fix indentation of comments in cellobject.c (closes #27011) 2016-05-12 23:12:21 -07:00
classobject.c method_call() and slot_tp_new() now uses fast call 2016-08-25 01:04:14 +02:00
codeobject.c [3.6] bpo-32176: Set CO_NOFREE in the code object constructor (GH-4684) 2017-12-03 23:32:54 +10:00
complexobject.c bpo-29602: fix signed zero handling in complex constructor. (#203) (#206) 2017-02-20 21:59:30 +00:00
descrobject.c bpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995) 2018-02-13 22:15:24 +09:00
dict-common.h Add _PyDict_CheckConsistency() 2016-09-14 15:02:01 +02:00
dictnotes.txt Issue #15055: update dictnotes.txt. Patch by Mark Shannon. 2012-06-24 21:03:45 +02:00
dictobject.c bpo-18533: Avoid RecursionError from repr() of recursive dictview (GH-4823) 2018-02-26 06:42:00 -08:00
enumobject.c [3.6] bpo-31579: Fixed a possible leak in enumerate() with large indices. (GH-3753). (#3760) 2017-09-26 09:11:34 +03:00
exceptions.c bpo-32685: Improve suggestion for print statement (GH-5380) 2018-01-28 21:31:48 +10:00
fileobject.c Rename _PyObject_FastCall() to _PyObject_FastCallDict() 2016-08-22 22:48:54 +02:00
floatobject.c [3.6] bpo-31373: remove overly strict float range checks (GH-3486) (#3495) 2017-09-11 23:08:49 -07:00
frameobject.c [3.6] Revert "bpo-32690: Preserve order of locals() (GH-5379) (#5390)" 2018-01-30 15:27:41 +10:00
funcobject.c bpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995) 2018-02-13 22:15:24 +09:00
genobject.c Fix wrapping into StopIteration of return values in generators and coroutines (#644) (#647) 2017-03-12 17:04:06 -04:00
iterobject.c Rename _PyObject_FastCall() to _PyObject_FastCallDict() 2016-08-22 22:48:54 +02:00
listobject.c bpo-32137: The repr of deeply nested dict now raises a RecursionError (GH-4570) (GH-4689) 2018-02-01 13:57:28 +02:00
listsort.txt Issue #27895: Spelling fixes (Contributed by Ville Skyttä). 2016-09-07 12:03:06 +00:00
lnotab_notes.txt bpo-28810: Update lnotab_notes.txt (GH-665) (GH-919) 2017-03-31 02:12:18 -07:00
longobject.c bpo-31619: Fixed integer overflow in converting huge strings to int. (GH-3884) (#4690) 2017-12-03 23:27:21 +02:00
memoryobject.c Expand the PySlice_GetIndicesEx macro. (#1023) (#1044) 2017-04-08 11:18:14 +03:00
methodobject.c bpo-30524: Fix _PyStack_UnpackDict() (#1886) 2017-06-09 13:24:53 +02:00
moduleobject.c [3.6] bpo-31492: Fix assertion failures in case of a module with a bad __name__ attribute. (GH-3620). (#3773) 2017-09-27 07:33:00 +03:00
namespaceobject.c [3.6] bpo-31655: Validate keyword names in SimpleNamespace constructor. (GH-3909) (#3920) 2017-10-07 23:52:57 +03:00
object.c bpo-32137: The repr of deeply nested dict now raises a RecursionError (GH-4570) (GH-4689) 2018-02-01 13:57:28 +02:00
obmalloc.c bpo-31626: Fixed a bug in debug memory allocator. (GH-3844) (#4191) 2017-10-31 15:58:33 +02:00
odictobject.c Backport docstring improvements to OrderedDict. (GH-3470) 2017-09-10 18:11:18 -07:00
rangeobject.c bpo-28876: bool of large range raises OverflowError (#699) (#734) 2017-03-20 09:13:47 +02:00
setobject.c Removed unnecesssary bit inversion which doesn't improve dispersion statistics (GH-5235) (#5236) 2018-01-18 14:27:22 -08:00
sliceobject.c bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1480) (#1529) 2017-05-10 19:00:15 +08:00
structseq.c Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize 2016-11-20 09:13:07 +02:00
tupleobject.c [3.6] bpo-32746: Fix multiple typos (GH-5144) (GH-5522) 2018-02-03 21:00:24 -05:00
typeobject.c [3.6] bpo-32746: Fix multiple typos (GH-5144) (GH-5522) 2018-02-03 21:00:24 -05:00
typeslots.inc add Py_tp_finalize slot (closes #24345) 2015-06-01 10:12:48 -05:00
typeslots.py Issue #26662: Set PYTHON_FOR_GEN in configure 2016-07-26 12:48:08 +02:00
unicodectype.c Removed unintentional trailing spaces in non-external and non-generated C files. 2015-03-18 21:53:15 +02:00
unicodeobject.c bpo-32827: Fix usage of _PyUnicodeWriter_Prepare() in decoding errors handler. (GH-5636) 2018-02-13 01:32:46 -08:00
unicodetype_db.h Unicode 9.0.0 2016-09-14 23:53:47 -07:00
weakrefobject.c bpo-29347: Fix possibly dereferencing undefined pointers when creating weakref objects (#128) (#186) 2017-02-20 14:33:02 +08:00

README

Source files for various builtin objects