On 12/05/2013 1:00 PM, José Matos wrote:
On Sunday 12 May 2013 12:46:26 Julien Rioux wrote:
Is this intended to support both python 2 and 3? From a quick glance I
do not see "from __future__ import print_function" anywhere.

If it did that then the minimal version required would need to be 2.6.

As it is the parenthesis are ignore in python 2 and required in python 3.


Not quite ignored, if you have comma-delimited stuff and add () then python 2 prints a tuple:

$ python
Python 2.7 (r27:82500, Aug 07 2010, 16:54:59) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print 'h', 0
h 0
>>> print('h', 0)
('h', 0)
>>> from __future__ import print_function
>>> print('h', 0)
h 0

--
Julien

Reply via email to