Syntax error for simple script

Chris Angelico rosuav at gmail.com
Mon Jun 26 13:30:46 EDT 2017


On Tue, Jun 27, 2017 at 2:41 AM, Rurpy via Python-list
<python-list at python.org> wrote:
> How about:
>
>   In Python 2, 'print' was a statement and did not require
>   parenthesis around its argument.  In Python 3 'print' has
>   been changed to a function and now, like all functions,
>   requires parenthesis around its arguments:
>     python 2:  print arg1, arg2,...
>     python 3:  print (arg1, arg2,...)

Absolutely, if we consider that Python 2 is the official standard and
Python 3 is a buggy interloper. But if Python 3 is the standard and
Python 2 is the legacy version, then the existing message is far more
appropriate, without being unhelpful.

ChrisA



More information about the Python-list mailing list