]> granicus.if.org Git - python/commit
Use directly _PyObject_GenericSetAttrWithDict()
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 5 Dec 2016 17:23:27 +0000 (18:23 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 5 Dec 2016 17:23:27 +0000 (18:23 +0100)
commit9083eb6aac6e0aa0eb1dee9bc535538de4125fcd
treedbf66c843fe393fd2b3dbce12d63219d5cdd565f
parent408bfa6d96456a7c3621e5c6d249d3fac337a78b
Use directly _PyObject_GenericSetAttrWithDict()

Modify type_setattro() to call directly _PyObject_GenericSetAttrWithDict()
instead of PyObject_GenericSetAttr().

PyObject_GenericSetAttr() is a thin wrapper to
_PyObject_GenericSetAttrWithDict().
Objects/typeobject.c