Mailing List Archive

python/dist/src/Doc/api newtypes.tex,1.11,1.12
Update of /cvsroot/python/python/dist/src/Doc/api
In directory usw-pr-cvs1:/tmp/cvs-serv30336

Modified Files:
newtypes.tex
Log Message:
Fix a small mistake and complete some function prototypes.
SF Patch #547813.


Index: newtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/newtypes.tex,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** newtypes.tex 17 Apr 2002 13:44:58 -0000 1.11
--- newtypes.tex 24 Apr 2002 06:35:11 -0000 1.12
***************
*** 227,231 ****
\begin{datadesc}{METH_VARARGS}
This is the typical calling convention, where the methods have the
! type \ctype{PyMethodDef}. The function expects two
\ctype{PyObject*} values. The first one is the \var{self} object for
methods; for module functions, it has the value given to
--- 227,231 ----
\begin{datadesc}{METH_VARARGS}
This is the typical calling convention, where the methods have the
! type \ctype{PyCFunction}. The function expects two
\ctype{PyObject*} values. The first one is the \var{self} object for
methods; for module functions, it has the value given to
***************
*** 1152,1156 ****

\begin{verbatim}
! tp_init(PyObject *self, PyObject *args, PyObject *kwds)
\end{verbatim}

--- 1152,1156 ----

\begin{verbatim}
! int tp_init(PyObject *self, PyObject *args, PyObject *kwds)
\end{verbatim}

***************
*** 1180,1184 ****

\begin{verbatim}
! tp_alloc(PyTypeObject *self, int nitems)
\end{verbatim}

--- 1180,1184 ----

\begin{verbatim}
! PyObject *tp_alloc(PyTypeObject *self, int nitems)
\end{verbatim}

***************
*** 1216,1220 ****

\begin{verbatim}
! tp_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds)
\end{verbatim}

--- 1216,1220 ----

\begin{verbatim}
! PyObject *tp_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds)
\end{verbatim}