From e839199014701b81a59071e3f3a6f43867a69b40 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Wed, 25 Nov 1998 17:09:19 +0000 Subject: [PATCH] Fix indexing of func_code attribute; this is on a function, not a code object. Add "()" to method names indexed using \ttindex{}. --- Doc/lib/libstdtypes.tex | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index ba26ca4a530..c550beca97e 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