mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #6151: Make PyDescr_COMMON conform to standard C.
This commit is contained in:
parent
cf76e1ac92
commit
2db046dc39
4 changed files with 31 additions and 23 deletions
|
@ -5648,7 +5648,7 @@ update_one_slot(PyTypeObject *type, slotdef *p)
|
|||
generic = p->function;
|
||||
d = (PyWrapperDescrObject *)descr;
|
||||
if (d->d_base->wrapper == p->wrapper &&
|
||||
PyType_IsSubtype(type, d->d_type))
|
||||
PyType_IsSubtype(type, PyDescr_TYPE(d)))
|
||||
{
|
||||
if (specific == NULL ||
|
||||
specific == d->d_wrapped)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue