mirror of
https://github.com/python/cpython.git
synced 2025-11-13 07:26:31 +00:00
Stop lying about [].pop() being experimental! There is no backing it out
at this point.
This commit is contained in:
parent
25f68944c2
commit
fbd3b45bb7
1 changed files with 3 additions and 4 deletions
|
|
@ -506,10 +506,9 @@ Notes:
|
||||||
\item[(3)] Raises \exception{ValueError} when \var{x} is not found in
|
\item[(3)] Raises \exception{ValueError} when \var{x} is not found in
|
||||||
\var{s}.
|
\var{s}.
|
||||||
|
|
||||||
\item[(4)] The \method{pop()} method is experimental and at the moment
|
\item[(4)] The \method{pop()} method only supported by the list and
|
||||||
only supported by the list and array types. The optional argument
|
array types. The optional argument \var{i} defaults to \code{-1},
|
||||||
\var{i} defaults to \code{-1}, so that by default the last item is
|
so that by default the last item is removed and returned.
|
||||||
removed and returned.
|
|
||||||
|
|
||||||
\item[(5)] The \method{sort()} and \method{reverse()} methods modify the
|
\item[(5)] The \method{sort()} and \method{reverse()} methods modify the
|
||||||
list in place for economy of space when sorting or reversing a large
|
list in place for economy of space when sorting or reversing a large
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue