mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Make the Py<type>_Check() macro use PyObject_TypeCheck().
This commit is contained in:
parent
deb77e8394
commit
5eef77a21b
3 changed files with 3 additions and 3 deletions
|
@ -51,7 +51,7 @@ typedef struct {
|
|||
|
||||
extern DL_IMPORT(PyTypeObject) PyString_Type;
|
||||
|
||||
#define PyString_Check(op) ((op)->ob_type == &PyString_Type)
|
||||
#define PyString_Check(op) PyObject_TypeCheck(op, &PyString_Type)
|
||||
|
||||
extern DL_IMPORT(PyObject *) PyString_FromStringAndSize(const char *, int);
|
||||
extern DL_IMPORT(PyObject *) PyString_FromString(const char *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue