split string saving screened spaces

Sergey s323 at mail.ru
Fri Dec 16 03:45:54 EST 2005


Which module to use to do such thing:

"-a -b -c '1 2 3'" -> ["-a", "-b", "-c", "'1 2 3'"]

(i have string, need to pass it to getopt)





More information about the Python-list mailing list