Fix indexing of func_code attribute; this is on a function, not a code

object.

Add "()" to method names indexed using \ttindex{}.
This commit is contained in:
Fred Drake 1998-11-25 17:09:19 +00:00
parent 053b8dfcde
commit e839199014
1 changed files with 18 additions and 20 deletions

View File

@ -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