]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Mention exception in docstring
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 3 Oct 2008 16:29:19 +0000 (16:29 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 3 Oct 2008 16:29:19 +0000 (16:29 +0000)
Objects/setobject.c

index fbbdf6ede39c63c90cab849629c89e3a0c368b79..075f8e770631f6522ef1d77f13f8fee8ff97ca2e 100644 (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)