mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
PyObject_Del can now be used as a function designator.
This commit is contained in:
parent
6189b89cc5
commit
aa769ae468
6 changed files with 7 additions and 7 deletions
|
@ -992,7 +992,7 @@ PyTypeObject PyComplex_Type = {
|
|||
0, /* tp_init */
|
||||
0, /* tp_alloc */
|
||||
complex_new, /* tp_new */
|
||||
_PyObject_Del, /* tp_free */
|
||||
PyObject_Del, /* tp_free */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1631,7 +1631,7 @@ PyTypeObject PyFile_Type = {
|
|||
(initproc)file_init, /* tp_init */
|
||||
PyType_GenericAlloc, /* tp_alloc */
|
||||
file_new, /* tp_new */
|
||||
_PyObject_Del, /* tp_free */
|
||||
PyObject_Del, /* tp_free */
|
||||
};
|
||||
|
||||
/* Interface for the 'soft space' between print items. */
|
||||
|
|
|
@ -554,7 +554,7 @@ PyTypeObject PyClassMethod_Type = {
|
|||
cm_init, /* tp_init */
|
||||
PyType_GenericAlloc, /* tp_alloc */
|
||||
PyType_GenericNew, /* tp_new */
|
||||
_PyObject_Del, /* tp_free */
|
||||
PyObject_Del, /* tp_free */
|
||||
};
|
||||
|
||||
PyObject *
|
||||
|
@ -683,7 +683,7 @@ PyTypeObject PyStaticMethod_Type = {
|
|||
sm_init, /* tp_init */
|
||||
PyType_GenericAlloc, /* tp_alloc */
|
||||
PyType_GenericNew, /* tp_new */
|
||||
_PyObject_Del, /* tp_free */
|
||||
PyObject_Del, /* tp_free */
|
||||
};
|
||||
|
||||
PyObject *
|
||||
|
|
|
@ -2352,5 +2352,5 @@ PyTypeObject PyLong_Type = {
|
|||
0, /* tp_init */
|
||||
0, /* tp_alloc */
|
||||
long_new, /* tp_new */
|
||||
_PyObject_Del, /* tp_free */
|
||||
PyObject_Del, /* tp_free */
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue