mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
parent
e612c8ec81
commit
447083e4d0
1 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ the following operations:
|
|||
{test whether every element in \var{t} is in \var{s}}
|
||||
|
||||
\hline
|
||||
\lineiii{\var{s}.union(\var{t})}{\var{s} | \var{t}}
|
||||
\lineiii{\var{s}.union(\var{t})}{\var{s} \textbar{} \var{t}}
|
||||
{new set with elements from both \var{s} and \var{t}}
|
||||
\lineiii{\var{s}.intersection(\var{t})}{\var{s} \&\ \var{t}}
|
||||
{new set with elements common to \var{s} and \var{t}}
|
||||
|
@ -131,7 +131,7 @@ but not found in \class{ImmutableSet}:
|
|||
|
||||
\begin{tableiii}{c|c|l}{code}{Operation}{Equivalent}{Result}
|
||||
\lineiii{\var{s}.union_update(\var{t})}
|
||||
{\var{s} |= \var{t}}
|
||||
{\var{s} \textbar= \var{t}}
|
||||
{return set \var{s} with elements added from \var{t}}
|
||||
\lineiii{\var{s}.intersection_update(\var{t})}
|
||||
{\var{s} \&= \var{t}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue