Re: input() on python 2.7.5 vs 3.3.2

2013-12-12 Thread Chris Angelico
On Fri, Dec 13, 2013 at 2:04 AM, Mark Lawrence wrote: > I much prefer Chris Angelico's response "The input() function in Python 2.x > is a very dangerous one - it's equivalent to eval(input()) in Python 3." Just to clarify: If you *want* eval, then you know you want it, and you are (or should be)

Re: input() on python 2.7.5 vs 3.3.2

2013-12-12 Thread Mark Lawrence
On 12/12/2013 14:56, Amit Saha wrote: On Fri, Dec 13, 2013 at 12:45 AM, wrote: Can someone explain? Thanks. Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:06:53) [MSC v.1600 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. x = input() Hell

Re: input() on python 2.7.5 vs 3.3.2

2013-12-12 Thread Amit Saha
On Fri, Dec 13, 2013 at 12:45 AM, wrote: > Can someone explain? Thanks. > > Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:06:53) [MSC v.1600 64 bit > (AMD64)] on win32 > Type "help", "copyright", "credits" or "license" for more information. x = input() > Hello there print(x) > Hel

Re: input() on python 2.7.5 vs 3.3.2

2013-12-12 Thread Chris Angelico
On Fri, Dec 13, 2013 at 1:45 AM, wrote: > Can someone explain? Thanks. > > Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:06:53) [MSC v.1600 64 bit > (AMD64)] on win32 > Type "help", "copyright", "credits" or "license" for more information. x = input() > Hello there print(x) > Hell

input() on python 2.7.5 vs 3.3.2

2013-12-12 Thread stephen . boulet
Can someone explain? Thanks. Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:06:53) [MSC v.1600 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> x = input() Hello there >>> print(x) Hello there Python 2.7.5 (default, May 15 2013, 22:43:36) [M