Making a tiny script language using python: I need a string processing lib
Christos Georgiou
tzot at sil-tec.gr
Sat Mar 4 05:18:10 EST 2006
On 2 Mar 2006 17:53:38 -0800, rumours say that "Sullivan WxPyQtKinter"
<sullivanz.pku at gmail.com> might have written:
>I do not know if there is any lib specially designed to process the
>strings in scipt language.
>for example:
>I hope to process the string"print a,b,c,d,e "in the form"command
>argumentlist" and return:
>{'command'='print',
>'argumentlist'=['a','b','c','d','e']}
Have you checked the shlex module in the standard library? It might be
useful.
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
More information about the Python-list
mailing list