"Fuzzyman" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hello all,
>
> I'm writing a module that takes user input as strings and (effectively)
> translates them to function calls with arguments and keyword
> arguments.to pass a list I use a sort of 'list constructor' - so the
> syntax looks a bit like :
>
>   checkname(arg1, "arg 2", 'arg 3', keywarg="value",
> keywarg2='value2', default=list("val1", 'val2'))
>
> Worst case anyway :-)
>

pyparsing is great, easy to configure and very powerful--I think it looks 
like a great tool for your inputs.

http://pyparsing.sourceforge.net/


--Tim 


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to