mirror of
https://github.com/python/cpython.git
synced 2025-10-31 21:51:50 +00:00
Mention exception in docstring
This commit is contained in:
parent
b7df32e620
commit
d7b7dde98e
1 changed files with 2 additions and 1 deletions
|
|
@ -754,7 +754,8 @@ set_pop(PySetObject *so)
|
|||
return key;
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(pop_doc, "Remove and return an arbitrary set element.");
|
||||
PyDoc_STRVAR(pop_doc, "Remove and return an arbitrary set element.\n\
|
||||
Raises KeyError if the set is empty.");
|
||||
|
||||
static int
|
||||
set_traverse(PySetObject *so, visitproc visit, void *arg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue