diff options
author | Fred Drake <fdrake@acm.org> | 1998-08-24 17:57:20 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-08-24 17:57:20 (GMT) |
commit | d0421dd44849620a8ce0f3e7831d2fab4d0463ef (patch) | |
tree | 9c93ba3b7a353ad741c19cb14faf6e44ce39e1c9 /Doc | |
parent | ab076fdb6fa93542b3209d75002ce7e573758536 (diff) | |
download | cpython-d0421dd44849620a8ce0f3e7831d2fab4d0463ef.zip cpython-d0421dd44849620a8ce0f3e7831d2fab4d0463ef.tar.gz cpython-d0421dd44849620a8ce0f3e7831d2fab4d0463ef.tar.bz2 |
spoking --> speaking
object whose method this is --> object on which the method operates
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libstdtypes.tex | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index 460b873..6cb6c58 100644 --- a/Doc/lib/libstdtypes.tex +++ b/Doc/lib/libstdtypes.tex @@ -593,7 +593,7 @@ The only special operation on a module is attribute access: \code{\var{m}.\var{name}}, where \var{m} is a module and \var{name} accesses a name defined in \var{m}'s symbol table. Module attributes can be assigned to. (Note that the \code{import} statement is not, -strictly spoking, an operation on a module object; \code{import +strictly speaking, an operation on a module object; \code{import \var{foo}} does not require a module object named \var{foo} to exist, rather it requires an (external) \emph{definition} for a module named \var{foo} somewhere.) @@ -641,12 +641,12 @@ lists) and class instance methods. Built-in methods are described with the types that support them. The implementation adds two special read-only attributes to class -instance methods: \code{\var{m}.im_self} is the object whose method this -is, and \code{\var{m}.im_func} is the function implementing the method. -Calling \code{\var{m}(\var{arg-1}, \var{arg-2}, {\rm \ldots}, -\var{arg-n})} is completely equivalent to calling -\code{\var{m}.im_func(\var{m}.im_self, \var{arg-1}, \var{arg-2}, {\rm -\ldots}, \var{arg-n})}. +instance methods: \code{\var{m}.im_self} is the object on which the +method operates, and \code{\var{m}.im_func} is the function +implementing the method. Calling \code{\var{m}(\var{arg-1}, +\var{arg-2}, {\rm \ldots}, \var{arg-n})} is completely equivalent to +calling \code{\var{m}.im_func(\var{m}.im_self, \var{arg-1}, +\var{arg-2}, {\rm \ldots}, \var{arg-n})}. See the \emph{Python Reference Manual} for more information. |