[Python-checkins] r66772 - python/trunk/Objects/setobject.c

andrew.kuchling python-checkins at python.org
Sat Oct 4 09:33:22 CEST 2008


Author: andrew.kuchling
Date: Fri Oct 3 18:29:19 2008
New Revision: 66772
Log:
Mention exception in docstring
Modified:
 python/trunk/Objects/setobject.c
Modified: python/trunk/Objects/setobject.c
==============================================================================
--- python/trunk/Objects/setobject.c	(original)
+++ python/trunk/Objects/setobject.c	Fri Oct 3 18:29:19 2008
@@ -754,7 +754,8 @@
 	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)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /