The set types can also be called without arguments.

This commit is contained in:
Georg Brandl 2010-02-28 18:26:37 +00:00
parent bca1169e94
commit b36e63a5ee
1 changed files with 4 additions and 2 deletions

View 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.");