Python console rejects an object reference, having made an object with that reference as its name in previous line

Zachary Ware zachary.ware+pylist at gmail.com
Mon Dec 15 00:51:28 EST 2014


On Sun, Dec 14, 2014 at 11:38 PM, Michael Torrie <torriem at gmail.com> wrote:
> Guess the future import is only to make not having parens and error.

Python 2.7.8+ (default, Nov  2 2014, 00:32:19) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print(1, 2)
(1, 2)
>>> from __future__ import print_function
>>> print(1, 2)
1 2

Also, without the future import you can't use the 'sep', 'end', and
'file' keyword arguments.

-- 
Zach



More information about the Python-list mailing list