Powerful Command line parsers

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Sat Apr 22 01:49:39 EDT 2006


In article <44496AF2.6010602 at lexicon.net>,
 John Machin <sjmachin at lexicon.net> wrote:

>To meet your specifications, the module would need to incorporate a 
>mini-language:
>
>if a and (b or c): nasty("blah 1")
>if not (a or b or c or d): nasty("blah 2")
>if a and c and not d: nasty("blah 3")

Prolog-style predicates. :)



More information about the Python-list mailing list