Re: python2 input

2013-05-03 Thread Chris Angelico
On Fri, May 3, 2013 at 5:16 PM, dabaichi wrote: > 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 s

Re: python2 input

2013-05-03 Thread Steven D'Aprano
On Fri, 03 May 2013 15:16:09 +0800, dabaichi wrote: > Hello guys: > Do you have found that the built-in input() function is dangerous. Correct. Use raw_input instead. -- Steven -- http://mail.python.org/mailman/listinfo/python-list