diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2011-02-05 20:35:29 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2011-02-05 20:35:29 (GMT) |
commit | 738236dbd62aab5f0cf27f9ba0f2de3cb65802d2 (patch) | |
tree | b531bab8d3e4272e931f74297c988f9b26f71f9e /Objects | |
parent | 9b142aaae8581cc436c5a822bfac57e1687f6743 (diff) | |
download | cpython-738236dbd62aab5f0cf27f9ba0f2de3cb65802d2.zip cpython-738236dbd62aab5f0cf27f9ba0f2de3cb65802d2.tar.gz cpython-738236dbd62aab5f0cf27f9ba0f2de3cb65802d2.tar.bz2 |
Issue #11067: Add PyType_GetFlags, to support PyUnicode_Check
in the limited ABI
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index db7828a..e9c7591 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -1904,6 +1904,12 @@ type_init(PyObject *cls, PyObject *args, PyObject *kwds) return res; } +long +PyType_GetFlags(PyTypeObject *type) +{ + return type->tp_flags; +} + static PyObject * type_new(PyTypeObject *metatype, PyObject *args, PyObject *kwds) { |