mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-40170: Convert PyDescr_IsData() to static inline function (GH-24535)
This commit is contained in:
parent
8a8b5df93f
commit
871eb4237b
4 changed files with 11 additions and 3 deletions
|
|
@ -995,6 +995,11 @@ PyDescr_NewWrapper(PyTypeObject *type, struct wrapperbase *base, void *wrapped)
|
|||
return (PyObject *)descr;
|
||||
}
|
||||
|
||||
int
|
||||
PyDescr_IsData(PyObject *ob)
|
||||
{
|
||||
return Py_TYPE(ob)->tp_descr_set != NULL;
|
||||
}
|
||||
|
||||
/* --- mappingproxy: read-only proxy for mappings --- */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue