diff options
author | Guido van Rossum <guido@python.org> | 2001-08-30 03:08:07 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-08-30 03:08:07 +0000 |
commit | 3a57f729243a7395cfd3eff0aaa996b8a8202365 (patch) | |
tree | 85295e09836534ee38df1bbd864488e4a62d2c7a /Include/stringobject.h | |
parent | 030df08c8e1973f47027d2c88711f467020544b3 (diff) | |
download | cpython-3a57f729243a7395cfd3eff0aaa996b8a8202365.tar.gz |
Make the Py<type>_Check() macro use PyObject_TypeCheck().
Diffstat (limited to 'Include/stringobject.h')
-rw-r--r-- | Include/stringobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/stringobject.h b/Include/stringobject.h index 2d9ed2d91c..a67e33e3a8 100644 --- a/Include/stringobject.h +++ b/Include/stringobject.h @@ -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 *); |