]> granicus.if.org Git - python/commitdiff
The set types can also be called without arguments.
authorGeorg Brandl <georg@python.org>
Sun, 28 Feb 2010 18:26:37 +0000 (18:26 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 28 Feb 2010 18:26:37 +0000 (18:26 +0000)
Objects/setobject.c

index 45a9afc2dc7d9033f1762a13b7c37922de97c713..af5d576b98d16c8c7d35a92c5ebcd6ffd8927eac 100644 (file)
@@ -2102,7 +2102,8 @@ static PyNumberMethods set_as_number = {
 };
 
 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 @@ static PyNumberMethods frozenset_as_number = {
 };
 
 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.");