multiline prototyping on command line

Eric Smith eric at fruitcom.com
Sat Oct 30 04:13:46 EDT 1999


Hi

I am am a perl programmer looking at Python and would like to know whether
it is possible on the command line to test algorithms like I do in perl
thusly:

perl -e '$r="de";if ($r eq "whatever" or "de") {print "a match\n"}


-- 
Eric Smith
eric at fruitcom.com
www.fruitcom.com





More information about the Python-list mailing list