Substitute for join()
Daniel Klein
DanielK at jBASE.com
Wed Mar 21 14:35:53 EST 2001
More information about the Python-list mailing list
Wed Mar 21 14:35:53 EST 2001
- Previous message (by thread): Substitute for join()
- Next message (by thread): Substitute for join()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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. To 'get out of the woods' quickly, I substituted it with s = '' for element in mylist: s = s + element Is this the most efficient way to code this? Thanks, Daniel Klein
- Previous message (by thread): Substitute for join()
- Next message (by thread): Substitute for join()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list