mirror of
https://github.com/python/cpython.git
synced 2025-11-18 01:57:37 +00:00
Patch #843088: Fix typos. Backported to 2.3.
This commit is contained in:
parent
6caea370ac
commit
8bafb2aaca
2 changed files with 3 additions and 3 deletions
|
|
@ -971,7 +971,7 @@ class C:
|
||||||
\versionadded{2.3}
|
\versionadded{2.3}
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{super}{type\optional{object-or-type}}
|
\begin{funcdesc}{super}{type\optional{, object-or-type}}
|
||||||
Return the superclass of \var{type}. If the second argument is omitted
|
Return the superclass of \var{type}. If the second argument is omitted
|
||||||
the super object returned is unbound. If the second argument is an
|
the super object returned is unbound. If the second argument is an
|
||||||
object, \code{isinstance(\var{obj}, \var{type})} must be true. If
|
object, \code{isinstance(\var{obj}, \var{type})} must be true. If
|
||||||
|
|
|
||||||
|
|
@ -300,9 +300,9 @@ parameter cannot be passed in earlier 2.2 versions]{2.2.3}
|
||||||
correctly.
|
correctly.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{replace}{str, old, new\optional{, maxsplit}}
|
\begin{funcdesc}{replace}{str, old, new\optional{, maxreplace}}
|
||||||
Return a copy of string \var{str} with all occurrences of substring
|
Return a copy of string \var{str} with all occurrences of substring
|
||||||
\var{old} replaced by \var{new}. If the optional argument
|
\var{old} replaced by \var{new}. If the optional argument
|
||||||
\var{maxsplit} is given, the first \var{maxsplit} occurrences are
|
\var{maxreplace} is given, the first \var{maxreplace} occurrences are
|
||||||
replaced.
|
replaced.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue