]> granicus.if.org Git - python/commitdiff
#7116: str.join() takes an iterable.
authorGeorg Brandl <georg@python.org>
Wed, 14 Oct 2009 18:48:32 +0000 (18:48 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 14 Oct 2009 18:48:32 +0000 (18:48 +0000)
Doc/library/stdtypes.rst
Objects/stringobject.c
Objects/unicodeobject.c

index 25fda8f9d7a50c9d31566b781559c13fe68547fd..b4f62add5e460a7179be1db7231f94c80153b01d 100644 (file)
@@ -996,10 +996,11 @@ string functions based on regular expressions.
    For 8-bit strings, this method is locale-dependent.
 
 
-.. method:: str.join(seq)
+.. method:: str.join(iterable)
 
-   Return a string which is the concatenation of the strings in the sequence *seq*.
-   The separator between elements is the string providing this method.
+   Return a string which is the concatenation of the strings in the
+   :term:`iterable` *iterable*.  The separator between elements is the string
+   providing this method.
 
 
 .. method:: str.ljust(width[, fillchar])
index 1233fc0cc909e70aceed00de396faf88b700cac4..70d90d4ee75896c4c88645bbd48b15c767825017 100644 (file)
@@ -1814,10 +1814,10 @@ onError:
 
 
 PyDoc_STRVAR(join__doc__,
-"S.join(sequence) -> string\n\
+"S.join(iterable) -> string\n\
 \n\
 Return a string which is the concatenation of the strings in the\n\
-sequence.  The separator between elements is S.");
+iterable.  The separator between elements is S.");
 
 static PyObject *
 string_join(PyStringObject *self, PyObject *orig)
index 2028d96b6bf400cdcae5de9424b08b07aa89dc2f..6eac358b67085a971176b691ac0ec0241e75460a 100644 (file)
@@ -7154,10 +7154,10 @@ unicode_isnumeric(PyUnicodeObject *self)
 }
 
 PyDoc_STRVAR(join__doc__,
-             "S.join(sequence) -> unicode\n\
+             "S.join(iterable) -> unicode\n\
 \n\
 Return a string which is the concatenation of the strings in the\n\
-sequence.  The separator between elements is S.");
+iterable.  The separator between elements is S.");
 
 static PyObject*
 unicode_join(PyObject *self, PyObject *data)