From: Andrew M. Kuchling Date: Fri, 3 Oct 2008 16:29:19 +0000 (+0000) Subject: Mention exception in docstring X-Git-Tag: v2.7a1~2784 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7b7dde98e38f8ccbbe7cca736fd3b31ffb190f6;p=thirdparty%2FPython%2Fcpython.git Mention exception in docstring --- diff --git a/Objects/setobject.c b/Objects/setobject.c index fbbdf6ede39c..075f8e770631 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -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)