.join() question

drs drs at ecp.cc
Wed Jul 9 21:52:42 CEST 2003

why does

>>> ''.join(lst)

not automatically do

>>> ''.join([str(i) for i in lst])

?  That is, is there ever a time when one does not want .join to make
everything into a string?  This seems like reasonable default behavior, but
maybe I'm missing something?


More information about the Python-list mailing list