python2 input

dabaichi valbendan at outlook.com
Fri May 3 03:16:09 EDT 2013


Hello guys:
Do you have found that the built-in input() function is dangerous.
Here is my code(python 2.x only):

a = input("Input anything:")
print("go here")

If I input:
sys.exit(0)
print("go here") will not be execute, and the script will exit.

--- news://freenews.netfront.net/ - complaints: news at netfront.net ---



More information about the Python-list mailing list