computing with characters

Boris Borcic bborcic at gmail.com
Tue May 6 06:22:31 EDT 2008


Duncan Booth wrote:
> Torsten Bronger <bronger at physik.rwth-aachen.de> 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.

An obviously independent cause of uglyness is the inconsistency of eg
','.split() and ','.join()

Cheers, BB



More information about the Python-list mailing list