On Fri, Jan 9, 2009 at 9:17 AM, Aivar Annamaa <concat_na...@hotmail.com> wrote: > Hi > > I'm getting started with Python and in order to get good habits for Python > 3, i'd like to run my Python 2.6.1 with Python 3 warning mode. > > When i run > python -3 > > and execute statement >>>> print 4 > > then i expect to see a warning because i've understood that this statement > is not valid in Python 3 > > however no warning appears. > > Have is misunderstood something?
As was recently pointed out in a nearly identical thread, the -3 switch only points out problems that the 2to3 converter tool can't automatically fix. Changing print to print() on the other hand is easily fixed by 2to3. Cheers, Chris -- Follow the path of the Iguana... http://rebertia.com -- http://mail.python.org/mailman/listinfo/python-list