mirror of
https://github.com/python/cpython
synced 2026-09-29 10:35:30 +03:00
Add decl of PySuper_Type; fixup comments for the two other types.
This commit is contained in:
parent
705f0f5a91
commit
609c7c8e87
1 changed files with 3 additions and 2 deletions
|
|
@ -304,8 +304,9 @@ extern DL_IMPORT(int) PyType_IsSubtype(PyTypeObject *, PyTypeObject *);
|
|||
#define PyObject_TypeCheck(ob, tp) \
|
||||
((ob)->ob_type == (tp) || PyType_IsSubtype((ob)->ob_type, (tp)))
|
||||
|
||||
extern DL_IMPORT(PyTypeObject) PyType_Type; /* Metatype */
|
||||
extern DL_IMPORT(PyTypeObject) PyBaseObject_Type; /* Most base object type */
|
||||
extern DL_IMPORT(PyTypeObject) PyType_Type; /* built-in 'type' */
|
||||
extern DL_IMPORT(PyTypeObject) PyBaseObject_Type; /* built-in 'object' */
|
||||
extern DL_IMPORT(PyTypeObject) PySuper_Type; /* built-in 'super' */
|
||||
|
||||
#define PyType_Check(op) PyObject_TypeCheck(op, &PyType_Type)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue