Mention exception in docstring

This commit is contained in:
Andrew M. Kuchling 2008-10-03 16:29:19 +00:00
parent b7df32e620
commit d7b7dde98e
1 changed files with 2 additions and 1 deletions

View File

@ -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)