Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv3814
Modified Files:
python-22.tex
Log Message:
Correctly create new-style classes in the examples
Mention change to _PyTuple_Resize
Index: python-22.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -r1.47 -r1.48
*** python-22.tex 2001/10/31 13:16:10 1.47
--- python-22.tex 2001/11/26 18:15:44 1.48
***************
*** 237,241 ****
\begin{verbatim}
! class C:
def f(arg1, arg2):
...
--- 237,241 ----
\begin{verbatim}
! class C(object):
def f(arg1, arg2):
...
***************
*** 264,268 ****
from eiffel import eiffelmethod
! class C:
def f(self, arg1, arg2):
# The actual function
--- 264,268 ----
from eiffel import eiffelmethod
! class C(object):
def f(self, arg1, arg2):
# The actual function
***************
*** 376,380 ****
\begin{verbatim}
! class C:
def get_size (self):
result = ... computation ...
--- 376,380 ----
\begin{verbatim}
! class C(object):
def get_size (self):
result = ... computation ...
***************
*** 1247,1250 ****
--- 1247,1255 ----
(Contributed by M.-A. Lemburg.)
+ \item The \cfunction{_PyTuple_Resize()} function has lost an unused
+ parameter, so now it takes 2 parameters instead of 3. The third
+ argument was never used, and can simply be discarded when porting
+ code from earlier versions to Python 2.2.
+
\end{itemize}
***************
*** 1405,1412 ****
suggestions, corrections and assistance with various drafts of this
article: Fred Bremmer, Keith Briggs, Andrew Dalke, Fred~L. Drake, Jr.,
! Carel Fellinger, David Goodger, Mark Hammond, Stephen Hansen, Michael Hudson, Jack
! Jansen, Marc-Andr\'e Lemburg, Martin von L\"owis, Fredrik Lundh,
! Michael McLay, Nick Mathewson, Paul Moore, Tim Peters, Jens Quade, Tom
! Reinhardt, Neil Schemenauer, Guido van Rossum, Greg Ward.
\end{document}
--- 1410,1418 ----
suggestions, corrections and assistance with various drafts of this
article: Fred Bremmer, Keith Briggs, Andrew Dalke, Fred~L. Drake, Jr.,
! Carel Fellinger, David Goodger, Mark Hammond, Stephen Hansen, Michael
! Hudson, Jack Jansen, Marc-Andr\'e Lemburg, Martin von L\"owis, Fredrik
! Lundh, Michael McLay, Nick Mathewson, Paul Moore, Gustavo Niemeyer,
! Don O'Donnell, Tim Peters, Jens Quade, Tom Reinhardt, Neil
! Schemenauer, Guido van Rossum, Greg Ward.
\end{document}
|