diff options
author | Georg Brandl <georg@python.org> | 2010-02-28 18:26:37 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-02-28 18:26:37 (GMT) |
commit | b36e63a5ee7b1b8063b59f2be74703471ae45e1d (patch) | |
tree | 88b723cef65a988031035fbafbf7a368993e5493 /Objects/setobject.c | |
parent | bca1169e94f81b140629ae69ce2ab33628d26b08 (diff) | |
download | cpython-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.c | 6 |
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."); |