From: A.M. K. <aku...@us...> - 2001-10-29 15:47:36
|
Update of /cvsroot/py-howto/pyhowto In directory usw-pr-cvs1:/tmp/cvs-serv7014 Modified Files: python-22.tex Log Message: Fix some markup errors noted by MH Use attribute assignment to illustrate __slots__ raising an error Index: python-22.tex =================================================================== RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -r1.38 -r1.39 *** python-22.tex 2001/10/26 20:37:55 1.38 --- python-22.tex 2001/10/29 15:47:33 1.39 *************** *** 322,331 **** include a class multiple times if it's visited repeatedly. In the above example, the list of visited classes is [\class{D}, \class{B}, ! \class{A}, \class{C}, class{A}]. \item Scan the list for duplicated classes. If any are found, remove all but one occurrence, leaving the \emph{last} one in the list. In the above example, the list becomes [\class{D}, \class{B}, \class{C}, ! class{A}] after dropping duplicates. \end{enumerate} --- 322,331 ---- include a class multiple times if it's visited repeatedly. In the above example, the list of visited classes is [\class{D}, \class{B}, ! \class{A}, \class{C}, \class{A}]. \item Scan the list for duplicated classes. If any are found, remove all but one occurrence, leaving the \emph{last} one in the list. In the above example, the list becomes [\class{D}, \class{B}, \class{C}, ! \class{A}] after dropping duplicates. \end{enumerate} *************** *** 418,425 **** >>> print obj.template None ! >>> obj.template = 'Test' ; obj.name = 'abc' >>> print obj.template Test ! >>> obj.templtae Traceback (most recent call last): File "<stdin>", line 1, in ? --- 418,425 ---- >>> print obj.template None ! >>> obj.template = 'Test' >>> print obj.template Test ! >>> obj.templtae = None Traceback (most recent call last): File "<stdin>", line 1, in ? *************** *** 1362,1366 **** suggestions, corrections and assistance with various drafts of this article: Fred Bremmer, Keith Briggs, Andrew Dalke, Fred~L. Drake, Jr., ! Carel Fellinger, Mark Hammond, Stephen Hansen, Jack Jansen, Marc-Andr\'e Lemburg, Fredrik Lundh, Tim Peters, Tom Reinhardt, Neil Schemenauer, Guido van Rossum. --- 1362,1366 ---- suggestions, corrections and assistance with various drafts of this article: Fred Bremmer, Keith Briggs, Andrew Dalke, Fred~L. Drake, Jr., ! Carel Fellinger, Mark Hammond, Stephen Hansen, Michael Hudson, Jack Jansen, Marc-Andr\'e Lemburg, Fredrik Lundh, Tim Peters, Tom Reinhardt, Neil Schemenauer, Guido van Rossum. |