Re: One step up from str.split()

2008-07-16 Thread Matimus
On Jul 15, 4:28 pm, "Joel Koltner" <[EMAIL PROTECTED]> wrote: > "Sion Arrowsmith" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > What's wrong with sys.argv ? > > Mainly that it doesn't exist.  :-)  The example was slightly contrived -- I'm > really dealing with commands inter

Re: One step up from str.split()

2008-07-15 Thread Joel Koltner
"Sion Arrowsmith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What's wrong with sys.argv ? Mainly that it doesn't exist. :-) The example was slightly contrived -- I'm really dealing with commands interactively entered within a program in response to raw_input(), although the

Re: One step up from str.split()

2008-07-15 Thread Sion Arrowsmith
Joel Koltner <[EMAIL PROTECTED]> wrote: >I normally use str.split() for simple splitting of command line arguments, but >I would like to support, e.g., long file names which-- under windows -- are >typically provided as simple quoted string. E.g., > >myapp --dosomething --loadthis "my file name.

Re: One step up from str.split()

2008-07-14 Thread Joel Koltner
Thanks Matt, that looks like just what I want! -- http://mail.python.org/mailman/listinfo/python-list

Re: One step up from str.split()

2008-07-14 Thread Larry Bates
Joel Koltner wrote: I normally use str.split() for simple splitting of command line arguments, but I would like to support, e.g., long file names which-- under windows -- are typically provided as simple quoted string. E.g., myapp --dosomething --loadthis "my file name.fil" ...and I'd like t

Re: One step up from str.split()

2008-07-14 Thread Timothy Grant
On Mon, Jul 14, 2008 at 6:33 PM, Joel Koltner <[EMAIL PROTECTED]> wrote: > I normally use str.split() for simple splitting of command line arguments, > but > I would like to support, e.g., long file names which-- under windows -- are > typically provided as simple quoted string. E.g., > > myapp -

Re: One step up from str.split()

2008-07-14 Thread Matimus
On Jul 14, 6:33 pm, "Joel Koltner" <[EMAIL PROTECTED]> wrote: > I normally use str.split() for simple splitting of command line arguments, but > I would like to support, e.g., long file names which-- under windows -- are > typically provided as simple quoted string. E.g., > > myapp --dosomething -

One step up from str.split()

2008-07-14 Thread Joel Koltner
I normally use str.split() for simple splitting of command line arguments, but I would like to support, e.g., long file names which-- under windows -- are typically provided as simple quoted string. E.g., myapp --dosomething --loadthis "my file name.fil" ...and I'd like to get back a list wher