Author storymode7
Recipients storymode7
Date 2018-01-27.10:31:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1517049116.26.0.467229070634.issue32685@psf.upfronthosting.co.za>
In-reply-to
Content
The suggestion given when a for and print with the syntax for python 2.x are used together seems erroneous.

Steps to reproduce:
Just type following in the python interpreter (3.x):


for p in some_list: print p


The error produced is:

SyntaxError: Missing parentheses in call to 'print'. Did you mean print(in some_list: print p)?

I am also attaching a small file, that produces the error when run with:

python3 printBug.py
History
Date User Action Args
2018-01-27 10:31:56storymode7setrecipients: + storymode7
2018-01-27 10:31:56storymode7setmessageid: <1517049116.26.0.467229070634.issue32685@psf.upfronthosting.co.za>
2018-01-27 10:31:56storymode7linkissue32685 messages
2018-01-27 10:31:56storymode7create