Hallöchen! Duncan Booth writes:
> Torsten Bronger <[EMAIL PROTECTED]> wrote: > >> The biggest ugliness though is ",".join(). No idea why this should >> be better than join(list, separator=" "). Besides, ",".join(u"x") >> yields an unicode object. This is confusing (but will probably go >> away with Python 3). > > It is only ugly because you aren't used to seeing method calls on > string literals. I am used to it. Programming very much with unicode, I use .encode and .decode very often and I like them. I consider en/decoding to be an intrinsic feature of strings, but not ord(), which is an "external", rather administrative operation on strings (and actually not even this, but on characters) for my taste. However, join() is really bizarre. The list rather than the separator should be the leading actor. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See http://ime.webhop.org for further contact info.) -- http://mail.python.org/mailman/listinfo/python-list