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:
parent
053b8dfcde
commit
e839199014
|
@ -477,16 +477,15 @@ The following operations are defined on mutable sequence types (where
|
||||||
\indexii{slice}{assignment}
|
\indexii{slice}{assignment}
|
||||||
\stindex{del}
|
\stindex{del}
|
||||||
\withsubitem{(list method)}{%
|
\withsubitem{(list method)}{%
|
||||||
\ttindex{append}%
|
\ttindex{append()}%
|
||||||
\ttindex{extend}%
|
\ttindex{extend()}%
|
||||||
\ttindex{count}%
|
\ttindex{count()}%
|
||||||
\ttindex{index}%
|
\ttindex{index()}%
|
||||||
\ttindex{insert}%
|
\ttindex{insert()}%
|
||||||
\ttindex{pop}%
|
\ttindex{pop()}%
|
||||||
\ttindex{remove}%
|
\ttindex{remove()}%
|
||||||
\ttindex{reverse}%
|
\ttindex{reverse()}%
|
||||||
\ttindex{sort}%
|
\ttindex{sort()}}
|
||||||
}
|
|
||||||
\noindent
|
\noindent
|
||||||
Notes:
|
Notes:
|
||||||
\begin{description}
|
\begin{description}
|
||||||
|
@ -561,15 +560,14 @@ mapping, \var{k} is a key and \var{x} is an arbitrary object):
|
||||||
\stindex{del}
|
\stindex{del}
|
||||||
\bifuncindex{len}
|
\bifuncindex{len}
|
||||||
\withsubitem{(dictionary method)}{%
|
\withsubitem{(dictionary method)}{%
|
||||||
\ttindex{clear}%
|
\ttindex{clear()}%
|
||||||
\ttindex{copy}%
|
\ttindex{copy()}%
|
||||||
\ttindex{has_key}%
|
\ttindex{has_key()}%
|
||||||
\ttindex{items}%
|
\ttindex{items()}%
|
||||||
\ttindex{keys}%
|
\ttindex{keys()}%
|
||||||
\ttindex{update}%
|
\ttindex{update()}%
|
||||||
\ttindex{values}%
|
\ttindex{values()}%
|
||||||
\ttindex{get}%
|
\ttindex{get()}}
|
||||||
}
|
|
||||||
\noindent
|
\noindent
|
||||||
Notes:
|
Notes:
|
||||||
\begin{description}
|
\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}
|
extracted from function objects through their \code{func_code}
|
||||||
attribute.
|
attribute.
|
||||||
\bifuncindex{compile}
|
\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
|
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
|
source string) to the \code{exec} statement or the built-in
|
||||||
|
|
Loading…
Reference in New Issue