summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-05-10 19:46:39 (GMT)
committerFred Drake <fdrake@acm.org>2003-05-10 19:46:39 (GMT)
commit8f53cdcfce23ba20869742d889d4dae7fc76a2cb (patch)
tree33163e432b44f2f8b8bb94506fd23be6b2dc63c5 /Doc
parent4f0c6b2b70125b55ae41b0f85ee2ea006c81fb98 (diff)
downloadcpython-8f53cdcfce23ba20869742d889d4dae7fc76a2cb.zip
cpython-8f53cdcfce23ba20869742d889d4dae7fc76a2cb.tar.gz
cpython-8f53cdcfce23ba20869742d889d4dae7fc76a2cb.tar.bz2
- object is a class type, not a function
- when marking a function, the trailing () should be included consistently
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libfuncs.tex7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex
index c90ecd1..4020e8b 100644
--- a/Doc/lib/libfuncs.tex
+++ b/Doc/lib/libfuncs.tex
@@ -306,7 +306,7 @@ class C:
\method{next()} method of the iterator returned by
\function{enumerate()} returns a tuple containing a count (from
zero) and the corresponding value obtained from iterating over
- \var{iterable}. \function{enumerate} is useful for obtaining an
+ \var{iterable}. \function{enumerate()} is useful for obtaining an
indexed series: \code{(0, seq[0])}, \code{(1, seq[1])}, \code{(2,
seq[2])}, \ldots.
\versionadded{2.3}
@@ -711,9 +711,10 @@ class C:
rounding accidents.)
\end{funcdesc}
-\begin{funcdesc}{property}{\optional{fget\optional{, fset\optional{, fdel\optional{, doc}}}}}
+\begin{funcdesc}{property}{\optional{fget\optional{, fset\optional{,
+ fdel\optional{, doc}}}}}
Return a property attribute for new-style classes (classes that
- derive from \function{object}).
+ derive from \class{object}).
\var{fget} is a function for getting an attribute value, likewise
\var{fset} is a function for setting, and \var{fdel} a function