]> granicus.if.org Git - python/commitdiff
Fix indexing of func_code attribute; this is on a function, not a code
authorFred Drake <fdrake@acm.org>
Wed, 25 Nov 1998 17:09:19 +0000 (17:09 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 25 Nov 1998 17:09:19 +0000 (17:09 +0000)
object.

Add "()" to method names indexed using \ttindex{}.

Doc/lib/libstdtypes.tex

index ba26ca4a53002db8167fbaf413b41b035598e0d2..c550beca97e92da02cd6de0654443131da5b877c 100644 (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