diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-04-18 22:15:26 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-04-18 22:15:26 (GMT) |
commit | 01c6e6fb354ec9bb2157ee4e02ecb5b165e64b76 (patch) | |
tree | 29cad8aa58e1e26401529f7d8549de2ebdc3279b /Objects/descrobject.c | |
parent | accb3d0014cf4b4bebf3ae8f5a1c73e099c470f7 (diff) | |
download | cpython-01c6e6fb354ec9bb2157ee4e02ecb5b165e64b76.zip cpython-01c6e6fb354ec9bb2157ee4e02ecb5b165e64b76.tar.gz cpython-01c6e6fb354ec9bb2157ee4e02ecb5b165e64b76.tar.bz2 |
many more types to initialize (I had to expose some of them)
Diffstat (limited to 'Objects/descrobject.c')
-rw-r--r-- | Objects/descrobject.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c index fcc174e..536e5a8 100644 --- a/Objects/descrobject.c +++ b/Objects/descrobject.c @@ -456,7 +456,7 @@ static PyTypeObject PyClassMethodDescr_Type = { 0, /* tp_descr_set */ }; -static PyTypeObject PyMemberDescr_Type = { +PyTypeObject PyMemberDescr_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "member_descriptor", sizeof(PyMemberDescrObject), @@ -493,7 +493,7 @@ static PyTypeObject PyMemberDescr_Type = { (descrsetfunc)member_set, /* tp_descr_set */ }; -static PyTypeObject PyGetSetDescr_Type = { +PyTypeObject PyGetSetDescr_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "getset_descriptor", sizeof(PyGetSetDescrObject), @@ -819,7 +819,7 @@ proxy_richcompare(proxyobject *v, PyObject *w, int op) return PyObject_RichCompare(v->dict, w, op); } -static PyTypeObject proxytype = { +PyTypeObject PyDictProxy_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "dictproxy", /* tp_name */ sizeof(proxyobject), /* tp_basicsize */ @@ -862,7 +862,7 @@ PyDictProxy_New(PyObject *dict) { proxyobject *pp; - pp = PyObject_GC_New(proxyobject, &proxytype); + pp = PyObject_GC_New(proxyobject, &PyDictProxy_Type); if (pp != NULL) { Py_INCREF(dict); pp->dict = dict; |