diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2001-10-30 14:22:11 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2001-10-30 14:22:11 (GMT) |
commit | 7cc13de55412187955ffcadede8b3ae619adddd3 (patch) | |
tree | cd216e25389c1082708fdfe0cebacb2ecebf9ba6 /Doc/whatsnew | |
parent | f24339f6f7b6458e059a8a2bc8b805e40c1fb359 (diff) | |
download | cpython-7cc13de55412187955ffcadede8b3ae619adddd3.zip cpython-7cc13de55412187955ffcadede8b3ae619adddd3.tar.gz cpython-7cc13de55412187955ffcadede8b3ae619adddd3.tar.bz2 |
Corrections noted by Michael McLay
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/whatsnew22.tex | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/whatsnew/whatsnew22.tex b/Doc/whatsnew/whatsnew22.tex index cc1be3f..b849cc9 100644 --- a/Doc/whatsnew/whatsnew22.tex +++ b/Doc/whatsnew/whatsnew22.tex @@ -222,10 +222,10 @@ actually performs are: \begin{verbatim} descriptor = obj.__class__.x -descriptor.get(obj) +descriptor.__get__(obj) \end{verbatim} -For methods, \method{descriptor.get} returns a temporary object that's +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; they have descriptors that wrap up just the method, or the method and @@ -1369,7 +1369,7 @@ The author would like to thank the following people for offering 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, Jens Quade, Tom Reinhardt, -Neil Schemenauer, Guido van Rossum. +Marc-Andr\'e Lemburg, Fredrik Lundh, Michael McLay, Tim Peters, Jens +Quade, Tom Reinhardt, Neil Schemenauer, Guido van Rossum. \end{document} |