Parse a string into argv-like list like OS does

python at bdurham.com python at bdurham.com
Sun Aug 1 09:42:47 EDT 2010


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



More information about the Python-list mailing list