Mention exception in docstring
This commit is contained in:
parent
b7df32e620
commit
d7b7dde98e
|
@ -754,7 +754,8 @@ set_pop(PySetObject *so)
|
||||||
return key;
|
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
|
static int
|
||||||
set_traverse(PySetObject *so, visitproc visit, void *arg)
|
set_traverse(PySetObject *so, visitproc visit, void *arg)
|
||||||
|
|
Loading…
Reference in New Issue