]> granicus.if.org Git - python/commitdiff
#8030: make builtin type docstrings more consistent: use "iterable" instead of "seq...
authorGeorg Brandl <georg@python.org>
Sun, 28 Feb 2010 18:19:17 +0000 (18:19 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 28 Feb 2010 18:19:17 +0000 (18:19 +0000)
Objects/dictobject.c
Objects/listobject.c
Objects/setobject.c

index b20d6f36e9a14420de1e4fc094ac9b1c3c6efdc7..517c20c2fc5f9116aed8bc74146437bf7018c170 100644 (file)
@@ -2330,9 +2330,9 @@ PyDoc_STRVAR(dictionary_doc,
 "dict() -> new empty dictionary.\n"
 "dict(mapping) -> new dictionary initialized from a mapping object's\n"
 "    (key, value) pairs.\n"
-"dict(seq) -> new dictionary initialized as if via:\n"
+"dict(iterable) -> new dictionary initialized as if via:\n"
 "    d = {}\n"
-"    for k, v in seq:\n"
+"    for k, v in iterable:\n"
 "        d[k] = v\n"
 "dict(**kwargs) -> new dictionary initialized with the name=value pairs\n"
 "    in the keyword argument list.  For example:  dict(one=1, two=2)");
index c55524d5b1f98cf199a0feb540d35c7c398e1ae4..d7103744249f0bddbbf4006cba95e1e5039f7742 100644 (file)
@@ -2537,7 +2537,7 @@ static PySequenceMethods list_as_sequence = {
 
 PyDoc_STRVAR(list_doc,
 "list() -> new list\n"
-"list(sequence) -> new list initialized from sequence's items");
+"list(iterable) -> new list initialized from iterable's items");
 
 
 static PyObject *
index 81fd31580e4ade5b3527785a6e93be75b436d51b..45a9afc2dc7d9033f1762a13b7c37922de97c713 100644 (file)
@@ -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.");