diff options
author | Fred Drake <fdrake@acm.org> | 1998-11-25 17:09:19 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-11-25 17:09:19 (GMT) |
commit | e839199014701b81a59071e3f3a6f43867a69b40 (patch) | |
tree | 12be395cf3aca3ab20f03e2552981e63ca9962c4 /Doc/lib | |
parent | 053b8dfcde1c5ad271a44a589b4716c246e891c5 (diff) | |
download | cpython-e839199014701b81a59071e3f3a6f43867a69b40.zip cpython-e839199014701b81a59071e3f3a6f43867a69b40.tar.gz cpython-e839199014701b81a59071e3f3a6f43867a69b40.tar.bz2 |
Fix indexing of func_code attribute; this is on a function, not a code
object.
Add "()" to method names indexed using \ttindex{}.
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libstdtypes.tex | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index ba26ca4..c550bec 100644 --- a/Doc/lib/libstdtypes.tex +++ b/Doc/lib/libstdtypes.tex @@ -477,16 +477,15 @@ The following operations are defined on mutable sequence types (where \indexii{slice}{assignment} \stindex{del} \withsubitem{(list method)}{% - \ttindex{append}% - \ttindex{extend}% - \ttindex{count}% - \ttindex{index}% - \ttindex{insert}% - \ttindex{pop}% - \ttindex{remove}% - \ttindex{reverse}% - \ttindex{sort}% -} + \ttindex{append()}% + \ttindex{extend()}% + \ttindex{count()}% + \ttindex{index()}% + \ttindex{insert()}% + \ttindex{pop()}% + \ttindex{remove()}% + \ttindex{reverse()}% + \ttindex{sort()}} \noindent Notes: \begin{description} @@ -561,15 +560,14 @@ mapping, \var{k} is a key and \var{x} is an arbitrary object): \stindex{del} \bifuncindex{len} \withsubitem{(dictionary method)}{% - \ttindex{clear}% - \ttindex{copy}% - \ttindex{has_key}% - \ttindex{items}% - \ttindex{keys}% - \ttindex{update}% - \ttindex{values}% - \ttindex{get}% -} + \ttindex{clear()}% + \ttindex{copy()}% + \ttindex{has_key()}% + \ttindex{items()}% + \ttindex{keys()}% + \ttindex{update()}% + \ttindex{values()}% + \ttindex{get()}} \noindent Notes: \begin{description} @@ -665,7 +663,7 @@ returned by the built-in \code{compile()} function and can be extracted from function objects through their \code{func_code} attribute. \bifuncindex{compile} -\withsubitem{(code object attribute)}{\ttindex{func_code}} +\withsubitem{(function object attribute)}{\ttindex{func_code}} A code object can be executed or evaluated by passing it (instead of a source string) to the \code{exec} statement or the built-in |