How to parse a string completely into a list

Tino Wildenhain tino at wildenhain.de
Fri Sep 26 05:37:51 EDT 2008


john.ford at colorado.edu wrote:
...
> 
> Ahh, but I forgot to mention that I have to mark the path I took in
> the string. So using list() and then join() are my best options.

Still you would not need to create a list out of the string on your
way. Just append the stepstone chars to a new list during your walk.
Hoewever it entirely depends on your algorithm.

Tino
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3241 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20080926/153771be/attachment-0001.bin>


More information about the Python-list mailing list