More random python observations from a perl programmer
Hrvoje Niksic
hniksic at srce.hr
Mon Sep 13 18:47:43 EDT 1999
quango at watervalley.net (Chris Lawrence) writes:
> I always use raw_input(), which always returns a string, and do
> sanity testing on that. input() is inherently dangerous (IMHO it
> shouldn't even be available so easiliy).
Not to mention that it resembles BASIC. In fact, when I introduce my
friends to Python, I don't mention input at all -- I consider it kind
of embarrassing.
I don't see the purpose of raw_input() and input() when
sys.stdin.readline() and eval(sys.stdin.readline()) are available.
More information about the Python-list
mailing list