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

georg.brandl python-checkins at python.org
Sun Feb 28 19:26:37 CET 2010


Author: georg.brandl
Date: Sun Feb 28 19:26:37 2010
New Revision: 78516

Log:
The set types can also be called without arguments.

Modified:
   python/trunk/Objects/setobject.c

Modified: python/trunk/Objects/setobject.c
==============================================================================
--- python/trunk/Objects/setobject.c	(original)
+++ python/trunk/Objects/setobject.c	Sun Feb 28 19:26:37 2010
@@ -2102,7 +2102,8 @@
 };
 
 PyDoc_STRVAR(set_doc,
-"set(iterable) -> new set object\n\
+"set() -> new empty set object\n\
+set(iterable) -> new set object\n\
 \n\
 Build an unordered collection of unique elements.");
 
@@ -2200,7 +2201,8 @@
 };
 
 PyDoc_STRVAR(frozenset_doc,
-"frozenset(iterable) -> frozenset object\n\
+"frozenset() -> empty frozenset object\n\
+frozenset(iterable) -> frozenset object\n\
 \n\
 Build an immutable unordered collection of unique elements.");
 


More information about the Python-checkins mailing list