Mercurial > cpython-lru_cache-weakref
diff Include/unicodeobject.h @ 19589:844553473fa4 legacy-trunk
Make the Py<type>_Check() macro use PyObject_TypeCheck().
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 30 Aug 2001 03:08:07 +0000 |
| parents | 7257e87e0720 |
| children | bf0202dac441 |
line wrap: on
line diff
--- a/Include/unicodeobject.h Thu Aug 30 00:32:51 2001 +0000 +++ b/Include/unicodeobject.h Thu Aug 30 03:08:07 2001 +0000 @@ -372,7 +372,7 @@ extern DL_IMPORT(PyTypeObject) PyUnicode_Type; -#define PyUnicode_Check(op) (((op)->ob_type == &PyUnicode_Type)) +#define PyUnicode_Check(op) PyObject_TypeCheck(op, &PyUnicode_Type) /* Fast access macros */ #define PyUnicode_GET_SIZE(op) \
