Re: Convert a string to a list

2007-04-26 Thread Paul McGuire
On Apr 25, 9:02 pm, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Apr 24, 12:30 pm, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > > > > > Someone normally chimes in with pyparsing at this point... > > Well it *is* a short pyparsing routine, after all... > > -- Someone > > tests = """\ > ("." ".." "cd

Re: Convert a string to a list

2007-04-25 Thread Paul McGuire
On Apr 24, 12:30 pm, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > > Someone normally chimes in with pyparsing at this point... > Well it *is* a short pyparsing routine, after all... -- Someone tests = """\ ("." ".." "cdslib_cleanup.py" "cadence.py" "cdsinit_cdsenv_cleanup.py") ("." ("cadence.p

Re: Convert a string to a list

2007-04-24 Thread Nick Craig-Wood
rh0dium <[EMAIL PROTECTED]> wrote: > I am using pexpect to drive another tool. Some of the data I get back > would be better suited as a list and I want to know a simple way to > parse the data to push it into a list. > > For example > > I get the following string back. I want to convert t

Convert a string to a list

2007-04-24 Thread rh0dium
Hi all, I am using pexpect to drive another tool. Some of the data I get back would be better suited as a list and I want to know a simple way to parse the data to push it into a list. For example I get the following string back. I want to convert this to a list: '("." ".." "cdslib_cleanup.py