Le Tue, 05 May 2009 22:11:22 +1000,
Lie Ryan <lie.1...@gmail.com> s'exprima ainsi:

> Idea:
> Overrides the operator on Pattern class so we could write it like: 
> P("Hello") & P("World") instead of AND(P("Hello"), P("World"))

You could also override directly all python logical ops to allow direct 
expression of logical searches in python (~ like in pyparsing).
   (P("Hello") or P("Salut")) and (P("World") and not P("Universe"))
(Then rewriting from user expression may even be easier.)

;-)

Denis
------
la vita e estrany
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to