]> granicus.if.org Git - python/commitdiff
Patch #702933: Undocument PyObject_NEW, PyObject_NEW_VAR,
authorMartin v. Löwis <martin@v.loewis.de>
Fri, 14 Apr 2006 15:58:03 +0000 (15:58 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Fri, 14 Apr 2006 15:58:03 +0000 (15:58 +0000)
and PyObject_DEL.

Doc/api/memory.tex
Doc/api/newtypes.tex

index 3dbe9a5c38836c3eed15d6ce390fc347df3a06a4..4bc2c7ad00bf78f7818421b8f25a34ede2db0b94 100644 (file)
@@ -195,9 +195,7 @@ free(buf1);       /* Fatal -- should be PyMem_Del()  */
 In addition to the functions aimed at handling raw memory blocks from
 the Python heap, objects in Python are allocated and released with
 \cfunction{PyObject_New()}, \cfunction{PyObject_NewVar()} and
-\cfunction{PyObject_Del()}, or with their corresponding macros
-\cfunction{PyObject_NEW()}, \cfunction{PyObject_NEW_VAR()} and
-\cfunction{PyObject_DEL()}.
+\cfunction{PyObject_Del()}.
 
 These will be explained in the next chapter on defining and
 implementing new object types in C.
index b7e25b9662d147e0049ad940758d2a0643186594..2d758b08cae9f5786dc7275d2ac401a1c544835a 100644 (file)
@@ -62,23 +62,6 @@ defining new object types.
   after this call as the memory is no longer a valid Python object.
 \end{cfuncdesc}
 
-\begin{cfuncdesc}{\var{TYPE}*}{PyObject_NEW}{TYPE, PyTypeObject *type}
-  Macro version of \cfunction{PyObject_New()}, to gain performance at
-  the expense of safety.  This does not check \var{type} for a \NULL{}
-  value.
-\end{cfuncdesc}
-
-\begin{cfuncdesc}{\var{TYPE}*}{PyObject_NEW_VAR}{TYPE, PyTypeObject *type,
-                                                Py_ssize_t size}
-  Macro version of \cfunction{PyObject_NewVar()}, to gain performance
-  at the expense of safety.  This does not check \var{type} for a
-  \NULL{} value.
-\end{cfuncdesc}
-
-\begin{cfuncdesc}{void}{PyObject_DEL}{PyObject *op}
-  Macro version of \cfunction{PyObject_Del()}.
-\end{cfuncdesc}
-
 \begin{cfuncdesc}{PyObject*}{Py_InitModule}{char *name,
                                             PyMethodDef *methods}
   Create a new module object based on a name and table of functions,