mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
More \exception fixes.
This commit is contained in:
parent
da37604ee3
commit
db815abc70
18 changed files with 71 additions and 67 deletions
|
@ -151,12 +151,13 @@ but not found in \class{ImmutableSet}:
|
|||
\lineiii{\var{s}.add(\var{x})}{}
|
||||
{add element \var{x} to set \var{s}}
|
||||
\lineiii{\var{s}.remove(\var{x})}{}
|
||||
{remove \var{x} from set \var{s}; raises KeyError if not present}
|
||||
{remove \var{x} from set \var{s}; raises \exception{KeyError}
|
||||
if not present}
|
||||
\lineiii{\var{s}.discard(\var{x})}{}
|
||||
{removes \var{x} from set \var{s} if present}
|
||||
\lineiii{\var{s}.pop()}{}
|
||||
{remove and return an arbitrary element from \var{s}; raises
|
||||
KeyError if empty}
|
||||
\exception{KeyError} if empty}
|
||||
\lineiii{\var{s}.clear()}{}
|
||||
{remove all elements from set \var{s}}
|
||||
\end{tableiii}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue