PyObject_Del can now be used as a function designator.
This commit is contained in:
parent
6189b89cc5
commit
aa769ae468
@ -1719,7 +1719,7 @@ statichere PyTypeObject Arraytype = {
|
|||||||
0, /* tp_init */
|
0, /* tp_init */
|
||||||
PyType_GenericAlloc, /* tp_alloc */
|
PyType_GenericAlloc, /* tp_alloc */
|
||||||
array_new, /* tp_new */
|
array_new, /* tp_new */
|
||||||
_PyObject_Del, /* tp_free */
|
PyObject_Del, /* tp_free */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* No functions in array module. */
|
/* No functions in array module. */
|
||||||
|
@ -2703,7 +2703,7 @@ init_socket(void)
|
|||||||
PySocketSock_Type.ob_type = &PyType_Type;
|
PySocketSock_Type.ob_type = &PyType_Type;
|
||||||
PySocketSock_Type.tp_getattro = PyObject_GenericGetAttr;
|
PySocketSock_Type.tp_getattro = PyObject_GenericGetAttr;
|
||||||
PySocketSock_Type.tp_alloc = PyType_GenericAlloc;
|
PySocketSock_Type.tp_alloc = PyType_GenericAlloc;
|
||||||
PySocketSock_Type.tp_free = _PyObject_Del;
|
PySocketSock_Type.tp_free = PyObject_Del;
|
||||||
m = Py_InitModule3(PySocket_MODULE_NAME,
|
m = Py_InitModule3(PySocket_MODULE_NAME,
|
||||||
PySocket_methods,
|
PySocket_methods,
|
||||||
module_doc);
|
module_doc);
|
||||||
|
@ -992,7 +992,7 @@ PyTypeObject PyComplex_Type = {
|
|||||||
0, /* tp_init */
|
0, /* tp_init */
|
||||||
0, /* tp_alloc */
|
0, /* tp_alloc */
|
||||||
complex_new, /* tp_new */
|
complex_new, /* tp_new */
|
||||||
_PyObject_Del, /* tp_free */
|
PyObject_Del, /* tp_free */
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1631,7 +1631,7 @@ PyTypeObject PyFile_Type = {
|
|||||||
(initproc)file_init, /* tp_init */
|
(initproc)file_init, /* tp_init */
|
||||||
PyType_GenericAlloc, /* tp_alloc */
|
PyType_GenericAlloc, /* tp_alloc */
|
||||||
file_new, /* tp_new */
|
file_new, /* tp_new */
|
||||||
_PyObject_Del, /* tp_free */
|
PyObject_Del, /* tp_free */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Interface for the 'soft space' between print items. */
|
/* Interface for the 'soft space' between print items. */
|
||||||
|
@ -554,7 +554,7 @@ PyTypeObject PyClassMethod_Type = {
|
|||||||
cm_init, /* tp_init */
|
cm_init, /* tp_init */
|
||||||
PyType_GenericAlloc, /* tp_alloc */
|
PyType_GenericAlloc, /* tp_alloc */
|
||||||
PyType_GenericNew, /* tp_new */
|
PyType_GenericNew, /* tp_new */
|
||||||
_PyObject_Del, /* tp_free */
|
PyObject_Del, /* tp_free */
|
||||||
};
|
};
|
||||||
|
|
||||||
PyObject *
|
PyObject *
|
||||||
@ -683,7 +683,7 @@ PyTypeObject PyStaticMethod_Type = {
|
|||||||
sm_init, /* tp_init */
|
sm_init, /* tp_init */
|
||||||
PyType_GenericAlloc, /* tp_alloc */
|
PyType_GenericAlloc, /* tp_alloc */
|
||||||
PyType_GenericNew, /* tp_new */
|
PyType_GenericNew, /* tp_new */
|
||||||
_PyObject_Del, /* tp_free */
|
PyObject_Del, /* tp_free */
|
||||||
};
|
};
|
||||||
|
|
||||||
PyObject *
|
PyObject *
|
||||||
|
@ -2352,5 +2352,5 @@ PyTypeObject PyLong_Type = {
|
|||||||
0, /* tp_init */
|
0, /* tp_init */
|
||||||
0, /* tp_alloc */
|
0, /* tp_alloc */
|
||||||
long_new, /* tp_new */
|
long_new, /* tp_new */
|
||||||
_PyObject_Del, /* tp_free */
|
PyObject_Del, /* tp_free */
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user