Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #10396
| Date | 2011-07-27 21:30 +0200 |
|---|---|
| From | Karim <karim.liateni@free.fr> |
| Subject | shlex parsing |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1538.1311795072.1164.python-list@python.org> (permalink) |
Hello All, I would like to parse this TCL command line with shlex: '-option1 [get_rule A1 B2] -option2 $VAR -option3 TAG' And I want to get the splitted list: ['-option1', '[get_rule A1 B2]', '-option2', '$VAR', '-option3', 'TAG'] Then I will gather in tuple 2 by 2 the arguments. I tried to the shlec properties attributes 'quotes', 'whitespace', etc... But I make 'choux blanc'. If somebody has complex experiences with this module I am in. Cheers Karim
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
shlex parsing Karim <karim.liateni@free.fr> - 2011-07-27 21:30 +0200
Re: shlex parsing Web Dreamer <webdreamer@nospam.fr> - 2011-07-28 17:48 +0200
Re: shlex parsing Karim <karim.liateni@free.fr> - 2011-07-28 18:21 +0200
Re: shlex parsing Nobody <nobody@nowhere.com> - 2011-07-28 17:37 +0100
Re: shlex parsing Karim <karim.liateni@free.fr> - 2011-07-28 19:51 +0200
Re: shlex parsing Web Dreamer <webdreamer@nospam.fr> - 2011-07-29 09:30 +0200
Re: shlex parsing Web Dreamer <webdreamer@nospam.fr> - 2011-07-29 09:24 +0200
Re: shlex parsing Karim <karim.liateni@free.fr> - 2011-07-29 11:37 +0200
Re: shlex parsing Web Dreamer <webdreamer@nospam.fr> - 2011-07-29 15:42 +0200
Re: shlex parsing Karim <karim.liateni@free.fr> - 2011-07-29 16:34 +0200
csiph-web