Mailing List Archive

CVS: python/dist/src/Doc/ext newtypes.tex,1.9,1.10
Update of /cvsroot/python/python/dist/src/Doc/ext
In directory usw-pr-cvs1:/tmp/cvs-serv4840/ext

Modified Files:
newtypes.tex
Log Message:
Added comments for more entries of the type structure in the example
type implementation.


Index: newtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ext/newtypes.tex,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** newtypes.tex 28 Mar 2002 23:12:09 -0000 1.9
--- newtypes.tex 28 Mar 2002 23:45:22 -0000 1.10
***************
*** 153,170 ****
static PyTypeObject noddy_NoddyType = {
PyObject_HEAD_INIT(NULL)
! 0,
! "Noddy",
! sizeof(noddy_NoddyObject),
! 0,
! noddy_noddy_dealloc, /*tp_dealloc*/
! 0, /*tp_print*/
! 0, /*tp_getattr*/
! 0, /*tp_setattr*/
! 0, /*tp_compare*/
! 0, /*tp_repr*/
! 0, /*tp_as_number*/
! 0, /*tp_as_sequence*/
! 0, /*tp_as_mapping*/
! 0, /*tp_hash */
};
\end{verbatim}
--- 153,170 ----
static PyTypeObject noddy_NoddyType = {
PyObject_HEAD_INIT(NULL)
! 0, /* ob_size */
! "Noddy", /* tp_name */
! sizeof(noddy_NoddyObject), /* tp_basicsize */
! 0, /* tp_itemsize */
! noddy_noddy_dealloc, /* tp_dealloc */
! 0, /* tp_print */
! 0, /* tp_getattr */
! 0, /* tp_setattr */
! 0, /* tp_compare */
! 0, /* tp_repr */
! 0, /* tp_as_number */
! 0, /* tp_as_sequence */
! 0, /* tp_as_mapping */
! 0, /* tp_hash */
};
\end{verbatim}
***************
*** 195,199 ****

\begin{verbatim}
! 0,
\end{verbatim}

--- 195,199 ----

\begin{verbatim}
! 0, /* ob_size */
\end{verbatim}

***************
*** 204,208 ****

\begin{verbatim}
! "Noddy",
\end{verbatim}

--- 204,208 ----

\begin{verbatim}
! "Noddy", /* tp_name */
\end{verbatim}

***************
*** 218,222 ****

\begin{verbatim}
! sizeof(noddy_NoddyObject),
\end{verbatim}

--- 218,222 ----

\begin{verbatim}
! sizeof(noddy_NoddyObject), /* tp_basicsize */
\end{verbatim}

***************
*** 225,229 ****

\begin{verbatim}
! 0,
\end{verbatim}

--- 225,229 ----

\begin{verbatim}
! 0, /* tp_itemsize */
\end{verbatim}

***************
*** 237,241 ****

\begin{verbatim}
! noddy_noddy_dealloc, /*tp_dealloc*/
\end{verbatim}

--- 237,241 ----

\begin{verbatim}
! noddy_noddy_dealloc, /* tp_dealloc */
\end{verbatim}