summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2008-10-03 16:29:19 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2008-10-03 16:29:19 (GMT)
commitd7b7dde98e38f8ccbbe7cca736fd3b31ffb190f6 (patch)
tree3c90c8fe1678c2ce0dad95c61f13b9fccc48ecf8
parentb7df32e6205f0b4267f2937d6990279d83b0ed5d (diff)
downloadcpython-d7b7dde98e38f8ccbbe7cca736fd3b31ffb190f6.zip
cpython-d7b7dde98e38f8ccbbe7cca736fd3b31ffb190f6.tar.gz
cpython-d7b7dde98e38f8ccbbe7cca736fd3b31ffb190f6.tar.bz2
Mention exception in docstring
-rw-r--r--Objects/setobject.c3
1 files changed, 2 insertions, 1 deletions
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)