mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
- object is a class type, not a function
- when marking a function, the trailing () should be included consistently
This commit is contained in:
parent
4f0c6b2b70
commit
8f53cdcfce
1 changed files with 4 additions and 3 deletions
|
@ -306,7 +306,7 @@ class C:
|
||||||
\method{next()} method of the iterator returned by
|
\method{next()} method of the iterator returned by
|
||||||
\function{enumerate()} returns a tuple containing a count (from
|
\function{enumerate()} returns a tuple containing a count (from
|
||||||
zero) and the corresponding value obtained from iterating over
|
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,
|
indexed series: \code{(0, seq[0])}, \code{(1, seq[1])}, \code{(2,
|
||||||
seq[2])}, \ldots.
|
seq[2])}, \ldots.
|
||||||
\versionadded{2.3}
|
\versionadded{2.3}
|
||||||
|
@ -711,9 +711,10 @@ class C:
|
||||||
rounding accidents.)
|
rounding accidents.)
|
||||||
\end{funcdesc}
|
\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
|
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{fget} is a function for getting an attribute value, likewise
|
||||||
\var{fset} is a function for setting, and \var{fdel} a function
|
\var{fset} is a function for setting, and \var{fdel} a function
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue