mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Nits from a review of the documentation update.
This commit is contained in:
parent
72452650af
commit
d4462300db
4 changed files with 24 additions and 12 deletions
|
@ -1063,7 +1063,7 @@ It's a function
|
|||
|
||||
\versionchanged[Formerly, \function{zip()} required at least one argument
|
||||
and \code{zip()} raised a \exception{TypeError} instead of returning
|
||||
\code{[]}]{2.4}
|
||||
an empty list.]{2.4}
|
||||
\end{funcdesc}
|
||||
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ the following operations:
|
|||
{new set with a shallow copy of \var{s}}
|
||||
\end{tableiii}
|
||||
|
||||
Note, this non-operator versions of \method{union()},
|
||||
Note, the non-operator versions of \method{union()},
|
||||
\method{intersection()}, \method{difference()}, and
|
||||
\method{symmetric_difference()} will accept any iterable as an argument.
|
||||
In contrast, their operator based counterparts require their arguments to
|
||||
|
@ -158,10 +158,7 @@ but not found in \class{ImmutableSet}:
|
|||
{remove all elements from set \var{s}}
|
||||
\end{tableiii}
|
||||
|
||||
\versionchanged[Earlier versions had an \method{update()} method; use
|
||||
\method{union_update()} instead]{2.3.1}
|
||||
|
||||
Note, this non-operator versions of \method{union_update()},
|
||||
Note, the non-operator versions of \method{union_update()},
|
||||
\method{intersection_update()}, \method{difference_update()}, and
|
||||
\method{symmetric_difference_update()} will accept any iterable as
|
||||
an argument.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue