Substitute for join()

Matthew Dixon Cowles matt at
Wed Mar 21 20:52:45 CET 2001

On Wed, 21 Mar 2001 11:35:53 -0800, Daniel Klein <DanielK at>

>I've got to make a script (written in version 2.0) to work on a machine
>running 1.5.2. The only incompatible line is one that uses the
>"".join(mylist) method.

>>> import string
>>> string.join(mylist,"")

Will do what you want.


More information about the Python-list mailing list