summaryrefslogtreecommitdiffstats
path: root/Objects/setobject.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-02-28 18:26:37 (GMT)
committerGeorg Brandl <georg@python.org>2010-02-28 18:26:37 (GMT)
commitb36e63a5ee7b1b8063b59f2be74703471ae45e1d (patch)
tree88b723cef65a988031035fbafbf7a368993e5493 /Objects/setobject.c
parentbca1169e94f81b140629ae69ce2ab33628d26b08 (diff)
downloadcpython-b36e63a5ee7b1b8063b59f2be74703471ae45e1d.zip
cpython-b36e63a5ee7b1b8063b59f2be74703471ae45e1d.tar.gz
cpython-b36e63a5ee7b1b8063b59f2be74703471ae45e1d.tar.bz2
The set types can also be called without arguments.
Diffstat (limited to 'Objects/setobject.c')
-rw-r--r--Objects/setobject.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index 45a9afc..af5d576 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -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.");