String.join revisited (URGENT for 1.6)
Moshe Zadka
moshez at math.huji.ac.il
Thu Jun 8 21:46:05 EDT 2000
On Thu, 8 Jun 2000, Manus Hand wrote:
> But as the devil's advocate, tt just seems to me
> that [].join() could be implemented such that each member of the list is
> str()'ed or repr()'ed
Surely you don't mean "repr": that would simply give the wrong result.
But "str" is just as wrong: consider
u", ".join(u"Zadka", u"Moshe")
(Where "Zadka" and "Moshe" are written in Hebrew, using Unicode).
"str"ing *that* would simply be wrong.
--
Moshe Zadka <moshez at math.huji.ac.il>
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com
More information about the Python-list
mailing list