]> granicus.if.org Git - python/commit
bpo-32571: Avoid raising unneeded AttributeError and silencing it in C code (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 25 Jan 2018 08:49:40 +0000 (10:49 +0200)
committerINADA Naoki <methane@users.noreply.github.com>
Thu, 25 Jan 2018 08:49:40 +0000 (17:49 +0900)
commitf320be77ffb73e3b9e7fc98c37b8df3975d84b40
tree552338f0200938249233fa4aa7b00add61965337
parent2b822a0bb1de2612c85d8f75e3ce89eda2ac9f68
 bpo-32571: Avoid raising unneeded AttributeError and silencing it in C code (GH-5222)

Add two new private APIs: _PyObject_LookupAttr() and _PyObject_LookupAttrId()
22 files changed:
Include/object.h
Modules/_collectionsmodule.c
Modules/_io/bufferedio.c
Modules/_io/fileio.c
Modules/_io/iobase.c
Modules/_io/textio.c
Modules/_pickle.c
Modules/arraymodule.c
Modules/itertoolsmodule.c
Objects/abstract.c
Objects/classobject.c
Objects/dictobject.c
Objects/genobject.c
Objects/object.c
Objects/odictobject.c
Objects/typeobject.c
Parser/asdl_c.py
Python/Python-ast.c
Python/_warnings.c
Python/bltinmodule.c
Python/ceval.c
Python/codecs.c