Safe eval?

Philipp Lenssen lenssen at hitnet.rwth-aachen.de
Tue Apr 16 16:57:44 EDT 2002


"Philipp Lenssen" <lenssen at hitnet.rwth-aachen.de> wrote in message
news:a9i327$cvi$1 at nets3.rz.RWTH-Aachen.DE...
>..
> 1 == 2 and false or (10 + 3 * 2) == 4 or internal_harmlessFunction() ==
true
>..

(Please replace false with 0 and true with 1... I guess that's how to do it
in Python? Just reading through a help text here.)





More information about the Python-list mailing list