From d7b7dde98e38f8ccbbe7cca736fd3b31ffb190f6 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Fri, 3 Oct 2008 16:29:19 +0000 Subject: Mention exception in docstring --- Objects/setobject.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Objects/setobject.c b/Objects/setobject.c index fbbdf6e..075f8e7 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) -- cgit v0.12