Mercurial > cpython-lru_cache-weakref
diff Objects/typeobject.c @ 67877:aca91c55f38d
Issue #11067: Add PyType_GetFlags, to support PyUnicode_Check
in the limited ABI
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 05 Feb 2011 20:35:29 +0000 |
| parents | a78c6d0c3f69 |
| children | 788eafaef7dc |
line wrap: on
line diff
--- a/Objects/typeobject.c Sat Feb 05 20:26:52 2011 +0000 +++ b/Objects/typeobject.c Sat Feb 05 20:35:29 2011 +0000 @@ -1904,6 +1904,12 @@ return res; } +long +PyType_GetFlags(PyTypeObject *type) +{ + return type->tp_flags; +} + static PyObject * type_new(PyTypeObject *metatype, PyObject *args, PyObject *kwds) {
