]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove _PyObject_Del
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 19 Aug 2007 22:48:23 +0000 (22:48 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 19 Aug 2007 22:48:23 +0000 (22:48 +0000)
Doc/c-api/newtypes.rst
Doc/data/refcounts.dat
Include/objimpl.h
Misc/NEWS
Modules/_randommodule.c
Modules/bz2module.c
Objects/typeobject.c
PC/os2emx/python25.def

index 5933f99917545e9c68c5e7d6ec98b3d69015c32b..f8694bf71975e6fb78e05d3cb66c050808ce1bc0 100644 (file)
@@ -23,9 +23,6 @@ Allocating Objects on the Heap
 .. cfunction:: PyVarObject* _PyObject_NewVar(PyTypeObject *type, Py_ssize_t size)
 
 
-.. cfunction:: void _PyObject_Del(PyObject *op)
-
-
 .. cfunction:: PyObject* PyObject_Init(PyObject *op, PyTypeObject *type)
 
    Initialize a newly-allocated object *op* with its type and initial reference.
@@ -1331,7 +1328,7 @@ The next fields, up to and including :attr:`tp_weaklist`, only exist if the
 
       void tp_free(void *)
 
-   The only initializer that is compatible with both versions is ``_PyObject_Del``,
+   The only initializer that is compatible with both versions is ``PyObject_Free``,
    whose definition has suitably adapted in Python 2.3.
 
    This field is inherited by static subtypes, but not by dynamic subtypes
index 5cb0b7a6709f0750562072a3874fb242ed6a1f76..4555301f11267820ab4a8a4ad24187a96a7cbcae 100644 (file)
@@ -1705,9 +1705,6 @@ _PyImport_FixupExtension:char*:::
 
 _PyImport_Init:void:::
 
-_PyObject_Del:void:::
-_PyObject_Del:PyObject*:op:0:
-
 _PyObject_New:PyObject*::+1:
 _PyObject_New:PyTypeObject*:type:0:
 
index 6e30ded7bba077dab2d73a09dbd2e1061fcf7f25..3f867e3ba3525b4cd342651a9dad81d20cd783c3 100644 (file)
@@ -131,9 +131,6 @@ PyAPI_FUNC(void) _PyObject_DebugMallocStats(void);
 #define PyObject_Del           PyObject_Free
 #define PyObject_DEL           PyObject_FREE
 
-/* for source compatibility with 2.2 */
-#define _PyObject_Del          PyObject_Free
-
 /*
  * Generic object allocator interface
  * ==================================
index f00c4c7b45ea307c892f9a3497b3c62bb6844792..5852fb5317dca6d51f1b398c895992b36c5195b6 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -232,7 +232,7 @@ C API
   nb_divide, nb_inplace_divide
 
 - Removed these macros:
-  staticforward, statichere, PyArg_GetInt, PyArg_NoArgs
+  staticforward, statichere, PyArg_GetInt, PyArg_NoArgs, _PyObject_Del
 
 - Removed these typedefs:
   intargfunc, intintargfunc, intobjargproc, intintobjargproc,
index 25adc2e120beccb14ac3449f6f8c4bfac395915c..95b7ade9285d7c1908d811b27c9a5b29fdf0d571 100644 (file)
@@ -557,7 +557,7 @@ static PyTypeObject Random_Type = {
        0,                              /*tp_init*/
        0,                              /*tp_alloc*/
        random_new,                     /*tp_new*/
-       _PyObject_Del,                  /*tp_free*/
+       PyObject_Free,                  /*tp_free*/
        0,                              /*tp_is_gc*/
 };
 
index 954c9147c0b21a068a0341d0e09b93f36bc3f568..c913c3fece13b18e7d818bf42bfbf60de7b13c2d 100644 (file)
@@ -1336,7 +1336,7 @@ static PyTypeObject BZ2File_Type = {
         (initproc)BZ2File_init, /*tp_init*/
         PyType_GenericAlloc,    /*tp_alloc*/
         PyType_GenericNew,      /*tp_new*/
-       _PyObject_Del,          /*tp_free*/
+       PyObject_Free,          /*tp_free*/
         0,                      /*tp_is_gc*/
 };
 
@@ -1612,7 +1612,7 @@ static PyTypeObject BZ2Comp_Type = {
         (initproc)BZ2Comp_init, /*tp_init*/
         PyType_GenericAlloc,    /*tp_alloc*/
         PyType_GenericNew,      /*tp_new*/
-       _PyObject_Del,          /*tp_free*/
+       PyObject_Free,          /*tp_free*/
         0,                      /*tp_is_gc*/
 };
 
@@ -1836,7 +1836,7 @@ static PyTypeObject BZ2Decomp_Type = {
         (initproc)BZ2Decomp_init, /*tp_init*/
         PyType_GenericAlloc,    /*tp_alloc*/
         PyType_GenericNew,      /*tp_new*/
-       _PyObject_Del,          /*tp_free*/
+       PyObject_Free,          /*tp_free*/
         0,                      /*tp_is_gc*/
 };
 
index f042f4a9289230b607bb61ec211029969e9f06e5..222207ca2b9dc7efe6792b13d51b86efe2be34dd 100644 (file)
@@ -3302,7 +3302,7 @@ inherit_slots(PyTypeObject *type, PyTypeObject *base)
                }
                else if ((type->tp_flags & Py_TPFLAGS_HAVE_GC) &&
                         type->tp_free == NULL &&
-                        base->tp_free == _PyObject_Del) {
+                        base->tp_free == PyObject_Free) {
                        /* A bit of magic to plug in the correct default
                         * tp_free function when a derived class adds gc,
                         * didn't define tp_free, and the base uses the
index 6aa2e627d09e19bdb75e41806e832f8a2aad5aa4..c7dddf552c59bd0162ce93e43891ca3d37d5c6cc 100644 (file)
@@ -456,7 +456,6 @@ EXPORTS
   "PyObject_InitVar"
   "_PyObject_New"
   "_PyObject_NewVar"
-  "_PyObject_Del"
   "_Py_ReadyTypes"
   "_Py_SwappedOp"
   "_Py_NotImplementedStruct"