]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35444: Unify and optimize the helper for getting a builtin object. (GH-11047)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 11 Dec 2018 06:28:18 +0000 (08:28 +0200)
committerGitHub <noreply@github.com>
Tue, 11 Dec 2018 06:28:18 +0000 (08:28 +0200)
commitbb86bf4c4eaa30b1f5192dab9f389ce0bb61114d
treeb9dbe54e2c1380294f3e2396450132d5b205af0a
parent7cf3d8e25174c8871883e42f3240fd7f01efd3a8
bpo-35444: Unify and optimize the helper for getting a builtin object. (GH-11047)

This speeds up pickling of some iterators.

This fixes also error handling in pickling methods when fail to
look up builtin "getattr".
21 files changed:
Include/ceval.h
Include/cpython/object.h
Misc/NEWS.d/next/Core and Builtins/2018-12-09-13-09-39.bpo-35444.9kYn4V.rst [new file with mode: 0644]
Modules/_pickle.c
Modules/arraymodule.c
Modules/itertoolsmodule.c
Objects/bytearrayobject.c
Objects/bytesobject.c
Objects/classobject.c
Objects/descrobject.c
Objects/dictobject.c
Objects/iterobject.c
Objects/listobject.c
Objects/methodobject.c
Objects/object.c
Objects/odictobject.c
Objects/rangeobject.c
Objects/setobject.c
Objects/tupleobject.c
Objects/unicodeobject.c
Python/ceval.c