Re: Parse a string into argv-like list like OS does

2010-08-01 Thread python
Tim, > Sounds like the shlex module... > http://docs.python.org/library/shlex.html Cheers for the link - that's *exactly* what I was searching for. For the archives: Here's an excellent tutorial on this module. http://www.oreillynet.com/onlamp/blog/2007/10/pymotw_shlex.html Malcolm -- http://m

Re: Parse a string into argv-like list like OS does

2010-08-01 Thread Tim Chase
On 08/01/10 08:12, pyt...@bdurham.com wrote: Before I reinvent the wheel, is there a module that provides a command-line like parser that I can use? By command-line like parser, I mean that I would like to pass a string to this function and get back a list in the same manner as the OS receives a

Parse a string into argv-like list like OS does

2010-08-01 Thread python
Before I reinvent the wheel, is there a module that provides a command-line like parser that I can use? By command-line like parser, I mean that I would like to pass a string to this function and get back a list in the same manner as the OS receives a command line string which it parses into discre