mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
gh-102213: Revert "gh-102213: Optimize the performance of __getattr__ (GH-102248)" (GH-103332)
This reverts commit aa0a73d1bc.
This commit is contained in:
parent
efb0a2cf3a
commit
059bb04245
3 changed files with 3 additions and 13 deletions
|
|
@ -1491,12 +1491,6 @@ PyObject_GenericGetAttr(PyObject *obj, PyObject *name)
|
|||
return _PyObject_GenericGetAttrWithDict(obj, name, NULL, 0);
|
||||
}
|
||||
|
||||
PyObject *
|
||||
_PyObject_GenericTryGetAttr(PyObject *obj, PyObject *name)
|
||||
{
|
||||
return _PyObject_GenericGetAttrWithDict(obj, name, NULL, 1);
|
||||
}
|
||||
|
||||
int
|
||||
_PyObject_GenericSetAttrWithDict(PyObject *obj, PyObject *name,
|
||||
PyObject *value, PyObject *dict)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue