mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
#8030: make builtin type docstrings more consistent: use "iterable" instead of "seq(uence)", use "new" to show that set() always returns a new object.
This commit is contained in:
parent
68beef6633
commit
bca1169e94
3 changed files with 5 additions and 5 deletions
|
@ -2102,7 +2102,7 @@ static PyNumberMethods set_as_number = {
|
|||
};
|
||||
|
||||
PyDoc_STRVAR(set_doc,
|
||||
"set(iterable) --> set object\n\
|
||||
"set(iterable) -> new set object\n\
|
||||
\n\
|
||||
Build an unordered collection of unique elements.");
|
||||
|
||||
|
@ -2200,7 +2200,7 @@ static PyNumberMethods frozenset_as_number = {
|
|||
};
|
||||
|
||||
PyDoc_STRVAR(frozenset_doc,
|
||||
"frozenset(iterable) --> frozenset object\n\
|
||||
"frozenset(iterable) -> frozenset object\n\
|
||||
\n\
|
||||
Build an immutable unordered collection of unique elements.");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue