Substitute for join()

Matthew Dixon Cowles matt at mondoinfo.com
Wed Mar 21 14:52:45 EST 2001


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

>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.

Regards,
Matt



More information about the Python-list mailing list