Enable subtyping on the rest of our type-objects

- not very useful atm as various places return hard-wired built-in types
This commit is contained in:
Panu Matilainen 2009-09-24 13:57:55 +03:00
parent df40d9b27b
commit 2507ab6797
7 changed files with 8 additions and 7 deletions

View File

@ -487,7 +487,7 @@ PyTypeObject hdr_Type = {
(getattrofunc) hdr_getattro, /* tp_getattro */
(setattrofunc) hdr_setattro, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT, /* tp_flags */
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */
hdr_doc, /* tp_doc */
0, /* tp_traverse */
0, /* tp_clear */

View File

@ -459,7 +459,8 @@ PyTypeObject rpmds_Type = {
PyObject_GenericSetAttr, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT | /* tp_flags */
Py_TPFLAGS_HAVE_RICHCOMPARE,
Py_TPFLAGS_HAVE_RICHCOMPARE |
Py_TPFLAGS_BASETYPE,
rpmds_doc, /* tp_doc */
0, /* tp_traverse */
0, /* tp_clear */

View File

@ -337,7 +337,7 @@ PyTypeObject rpmfi_Type = {
PyObject_GenericGetAttr, /* tp_getattro */
PyObject_GenericSetAttr, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT, /* tp_flags */
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */
rpmfi_doc, /* tp_doc */
0, /* tp_traverse */
0, /* tp_clear */

View File

@ -160,7 +160,7 @@ PyTypeObject rpmmi_Type = {
PyObject_GenericGetAttr, /* tp_getattro */
PyObject_GenericSetAttr, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT, /* tp_flags */
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */
rpmmi_doc, /* tp_doc */
0, /* tp_traverse */
0, /* tp_clear */

View File

@ -138,7 +138,7 @@ PyTypeObject rpmps_Type = {
PyObject_GenericGetAttr, /* tp_getattro */
PyObject_GenericSetAttr, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT, /* tp_flags */
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */
rpmps_doc, /* tp_doc */
0, /* tp_traverse */
0, /* tp_clear */

View File

@ -291,7 +291,7 @@ PyTypeObject rpmte_Type = {
PyObject_GenericGetAttr, /* tp_getattro */
PyObject_GenericSetAttr, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT, /* tp_flags */
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */
rpmte_doc, /* tp_doc */
0, /* tp_traverse */
0, /* tp_clear */

View File

@ -196,7 +196,7 @@ PyTypeObject spec_Type = {
0, /*tp_getattro*/
0, /*tp_setattro*/
0, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT, /*tp_flags*/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /*tp_flags*/
spec_doc, /* tp_doc */
0, /* tp_traverse */
0, /* tp_clear */