.join() question

drs drs at ecp.cc
Wed Jul 9 15:52:42 EDT 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?

-doug






More information about the Python-list mailing list