From aa769ae468c7b857226ebe5b073b4c787a60445a Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Fri, 12 Apr 2002 02:44:10 +0000 Subject: [PATCH] PyObject_Del can now be used as a function designator. --- Modules/arraymodule.c | 2 +- Modules/socketmodule.c | 2 +- Objects/complexobject.c | 2 +- Objects/fileobject.c | 2 +- Objects/funcobject.c | 4 ++-- Objects/longobject.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 46de178f689..1aa76dc526a 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1719,7 +1719,7 @@ statichere PyTypeObject Arraytype = { 0, /* tp_init */ PyType_GenericAlloc, /* tp_alloc */ array_new, /* tp_new */ - _PyObject_Del, /* tp_free */ + PyObject_Del, /* tp_free */ }; /* No functions in array module. */ diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 4366b17776d..53952fcb9d4 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -2703,7 +2703,7 @@ init_socket(void) PySocketSock_Type.ob_type = &PyType_Type; PySocketSock_Type.tp_getattro = PyObject_GenericGetAttr; PySocketSock_Type.tp_alloc = PyType_GenericAlloc; - PySocketSock_Type.tp_free = _PyObject_Del; + PySocketSock_Type.tp_free = PyObject_Del; m = Py_InitModule3(PySocket_MODULE_NAME, PySocket_methods, module_doc); diff --git a/Objects/complexobject.c b/Objects/complexobject.c index 48a9afa2e7f..3dbaea364b7 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -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 diff --git a/Objects/fileobject.c b/Objects/fileobject.c index a03796bf187..54d040de22a 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -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. */ diff --git a/Objects/funcobject.c b/Objects/funcobject.c index 178bd7709ef..a3541e4ee9b 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -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 * diff --git a/Objects/longobject.c b/Objects/longobject.c index c17d56f12c9..f11c0162947 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -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 */ };