Re: How to parse a string completely into a list

2008-09-26 Thread Tino Wildenhain
[EMAIL PROTECTED] 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 w

Re: How to parse a string completely into a list

2008-09-25 Thread john . ford
On Sep 25, 1:51 am, Tino Wildenhain <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Sep 24, 10:12 pm, Matt Nordhoff <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] wrote: > >>> On Sep 24, 9:44 pm, "Chris Rebert" <[EMAIL PROTECTED]> wrote: > > Could you please define exactly

Re: How to parse a string completely into a list

2008-09-25 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : I want to take a long alpha-numeric string with \n and white-space and place ALL elements of the string (even individual parts of a long white-space) into separate list elements. The most common way I've seen this performed is with the split() function, however I don't

Re: How to parse a string completely into a list

2008-09-25 Thread Tim Roberts
[EMAIL PROTECTED] wrote: > >The string draws a map that I then want to be able to traverse >through. If I can count through the individual characters of a list I >can create an x-y coordinate plane for navigation. Well, the point Matt was making is that traversing through a list and traversing thr

Re: How to parse a string completely into a list

2008-09-25 Thread Tino Wildenhain
[EMAIL PROTECTED] wrote: On Sep 24, 10:12 pm, Matt Nordhoff <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: On Sep 24, 9:44 pm, "Chris Rebert" <[EMAIL PROTECTED]> wrote: Could you please define exactly what you mean by "elements" of a string? If you mean characters, then just use lis

Re: How to parse a string completely into a list

2008-09-24 Thread john . ford
On Sep 24, 10:12 pm, Matt Nordhoff <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Sep 24, 9:44 pm, "Chris Rebert" <[EMAIL PROTECTED]> wrote: > >> On Wed, Sep 24, 2008 at 8:30 PM,  <[EMAIL PROTECTED]> wrote: > >>> I want to take a long alpha-numeric string with \n and white-space and >

Re: How to parse a string completely into a list

2008-09-24 Thread Matt Nordhoff
[EMAIL PROTECTED] wrote: > On Sep 24, 9:44 pm, "Chris Rebert" <[EMAIL PROTECTED]> wrote: >> On Wed, Sep 24, 2008 at 8:30 PM, <[EMAIL PROTECTED]> wrote: >>> I want to take a long alpha-numeric string with \n and white-space and >>> place ALL elements of the string (even individual parts of a long >

Re: How to parse a string completely into a list

2008-09-24 Thread john . ford
On Sep 24, 9:44 pm, "Chris Rebert" <[EMAIL PROTECTED]> wrote: > On Wed, Sep 24, 2008 at 8:30 PM,  <[EMAIL PROTECTED]> wrote: > > I want to take a long alpha-numeric string with \n and white-space and > > place ALL elements of the string (even individual parts of a long > > white-space) into separat

Re: How to parse a string completely into a list

2008-09-24 Thread Chris Rebert
On Wed, Sep 24, 2008 at 8:30 PM, <[EMAIL PROTECTED]> wrote: > I want to take a long alpha-numeric string with \n and white-space and > place ALL elements of the string (even individual parts of a long > white-space) into separate list elements. The most common way I've > seen this performed is wit

How to parse a string completely into a list

2008-09-24 Thread john . ford
I want to take a long alpha-numeric string with \n and white-space and place ALL elements of the string (even individual parts of a long white-space) into separate list elements. The most common way I've seen this performed is with the split() function, however I don't believe that it has the power