]> granicus.if.org Git - python/commit
[2.7] bpo-32640: Clarify the behavior of str.join and unicode object (GH-5333)
authorMariatta <Mariatta@users.noreply.github.com>
Fri, 26 Jan 2018 17:55:15 +0000 (09:55 -0800)
committerGitHub <noreply@github.com>
Fri, 26 Jan 2018 17:55:15 +0000 (09:55 -0800)
commitf5e8f71fe339fe5e47c4d24ac2e5177fa3c02922
treeacff223ca01e8c45fb2a887083dd6559986f2342
parent6996f284d4d90aa05c46d9fe6f38d1030454b224
[2.7] bpo-32640: Clarify the behavior of str.join and unicode object (GH-5333)

In str.join, if any of the iterable contains a Unicode object,
str.join will return a Unicode object.

A Type error will be raised if iterable contains values other
than a string or Unicode object.
Doc/library/stdtypes.rst