[Tutor] when string,join won't work
Sat, 6 Jan 2001 04:28:07 +0200 (IST)
On Thu, 4 Jan 2001, "Tim Peters" <firstname.lastname@example.org> wrote:
> In the specific case of string.join, though, it is indeed pointless to make
> the user explicitly convert everything to a string themself. While errors
> about mixing strings with (for example) integers in arithmetic catches
> *many* genuine bugs in code that (for example) Perl lets pass silently, I've
> never seen string.join griping about a non-string sequence element catch a
> *logic* error. Of *course* the user wants everything converted to a string,
> else they wouldn't have called string.join to begin with!
Well, that may be so in the old world. In the new world, when the user
is calling string.join(l, sep) he's *really* calling sep.join(l). If
sep is Unicode, it should convert to unicode (unicode()?). The semantics
Moshe Zadka <email@example.com>
This is a signature anti-virus.
Please stop the spread of signature viruses!