mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #11067: Add PyType_GetFlags, to support PyUnicode_Check
in the limited ABI
This commit is contained in:
parent
9b142aaae8
commit
738236dbd6
7 changed files with 32 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue