The set types can also be called without arguments.
This commit is contained in:
parent
bca1169e94
commit
b36e63a5ee
|
@ -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.");
|
||||
|
||||
|
|
Loading…
Reference in New Issue