Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into type_hasattr
  • Loading branch information
eendebakpt authored Dec 15, 2022
commit c689b92073c71e880763645accb7dff5bcd2ceb4
3 changes: 3 additions & 0 deletions Objects/typeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -4218,6 +4218,7 @@ _PyType_LookupId(PyTypeObject *type, _Py_Identifier *name)
return _PyType_Lookup(type, oname);
}


/* Check if the "readied" PyUnicode name
is a double-underscore special name. */
static int
Expand All @@ -4236,6 +4237,8 @@ is_dunder_name(PyObject *name)
return 0;
}

/* This is similar to PyObject_GenericGetAttr(),
but uses _PyType_Lookup() instead of just looking in type->tp_dict. */
PyObject *
_Py_type_getattro_impl(PyTypeObject *type, PyObject *name, int *suppress)
Comment thread
Fidget-Spinner marked this conversation as resolved.
Outdated
{
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.