[Python-checkins] python/dist/src/Doc/ext newtypes.tex,1.15,1.16
fdrake@sourceforge.net
fdrake@sourceforge.net
Tue, 14 May 2002 15:02:09 -0700
- Previous message: [Python-checkins] python/dist/src/Lib HTMLParser.py,1.10,1.11
- Next message: [Python-checkins] python/dist/src/Lib StringIO.py,1.24,1.25 tabnanny.py,1.18,1.19 fileinput.py,1.11,1.12 tokenize.py,1.30,1.31
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Doc/ext
In directory usw-pr-cvs1:/tmp/cvs-serv18732/ext
Modified Files:
newtypes.tex
Log Message:
Minor wording changes, plus correct a typo.
Index: newtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ext/newtypes.tex,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** newtypes.tex 12 Apr 2002 18:28:08 -0000 1.15
--- newtypes.tex 14 May 2002 22:02:07 -0000 1.16
***************
*** 21,27 ****
determines which (C) functions get called when, for instance, an
attribute gets looked up on an object or it is multiplied by another
! object. I call these C functions ``type methods'' to distinguish them
! from things like \code{[].append} (which I will call ``object
! methods'' when I get around to them).
So, if you want to define a new object type, you need to create a new
--- 21,27 ----
determines which (C) functions get called when, for instance, an
attribute gets looked up on an object or it is multiplied by another
! object. These C functions are called ``type methods'' to distinguish
! them from things like \code{[].append} (which we call ``object
! methods'').
So, if you want to define a new object type, you need to create a new
***************
*** 185,189 ****
explicitly unless you need them.
! This is so important that I'm going to pick the top of it apart still
further:
--- 185,189 ----
explicitly unless you need them.
! This is so important that we're going to pick the top of it apart still
further:
***************
*** 238,242 ****
This has to do with variable length objects like lists and strings.
! Ignore for now...
Now we get into the type methods, the things that make your objects
--- 238,242 ----
This has to do with variable length objects like lists and strings.
! Ignore this for now.
Now we get into the type methods, the things that make your objects
***************
*** 249,253 ****
\end{verbatim}
! From here, all the type methods are \NULL, so I won't go over them yet
--- that's for the next section!
--- 249,253 ----
\end{verbatim}
! From here, all the type methods are \NULL, so we'll go over them later
--- that's for the next section!
***************
*** 453,457 ****
instance of your object. It's implementation is very similar to the
\member{tp_repr} function, but the resulting string is intended for
! human consumption. It \member{tp_str} is not specified, the
\member{tp_repr} handler is used instead.
--- 453,457 ----
instance of your object. It's implementation is very similar to the
\member{tp_repr} function, but the resulting string is intended for
! human consumption. If \member{tp_str} is not specified, the
\member{tp_repr} handler is used instead.
- Previous message: [Python-checkins] python/dist/src/Lib HTMLParser.py,1.10,1.11
- Next message: [Python-checkins] python/dist/src/Lib StringIO.py,1.24,1.25 tabnanny.py,1.18,1.19 fileinput.py,1.11,1.12 tokenize.py,1.30,1.31
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]