From: A.M. K. <aku...@us...> - 2001-10-30 14:22:21
|
Update of /cvsroot/py-howto/pyhowto In directory usw-pr-cvs1:/tmp/cvs-serv6420 Modified Files: python-22.tex Log Message: Corrections noted by Michael McLay Index: python-22.tex =================================================================== RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -r1.41 -r1.42 *** python-22.tex 2001/10/29 20:37:47 1.41 --- python-22.tex 2001/10/30 14:22:11 1.42 *************** *** 223,230 **** \begin{verbatim} descriptor = obj.__class__.x ! descriptor.get(obj) \end{verbatim} ! For methods, \method{descriptor.get} returns a temporary object that's callable, and wraps up the instance and the method to be called on it. This is also why static methods and class methods are now possible; --- 223,230 ---- \begin{verbatim} descriptor = obj.__class__.x ! descriptor.__get__(obj) \end{verbatim} ! For methods, \method{descriptor.__get__} returns a temporary object that's callable, and wraps up the instance and the method to be called on it. This is also why static methods and class methods are now possible; *************** *** 1370,1375 **** 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, Jens Quade, Tom Reinhardt, ! Neil Schemenauer, Guido van Rossum. \end{document} --- 1370,1375 ---- 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, Michael McLay, Tim Peters, Jens ! Quade, Tom Reinhardt, Neil Schemenauer, Guido van Rossum. \end{document} |