Sergey wrote: > Which module to use to do such thing:
> "-a -b -c '1 2 3'" -> ["-a", "-b", "-c", "'1 2 3'"]
>>> import shlex
>>> shlex.split("-a -b -c '1 2 3'")
['-a', '-b', '-c', '1 2 3']
--
Giovanni Bajo
--
http://mail.python.org/mailman/listinfo/python-list
