This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients serhiy.storchaka, terry.reedy
Date 2015-07-19.22:18:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437344321.63.0.544143198256.issue24671@psf.upfronthosting.co.za>
In-reply-to
Content
Porting patches from 3.x to 2.7 would be much easier if print were always a function and not a statement in 2.7.

Two modules, configHandler and PyShell, have been converted to print functions ("from __future__ import print_function" and () added).

GrepDialog has parentheses added everywhere, WidgetRedirector has them in 1 of 2 places.  Both could use the import so "print(a,b)" is not printed as a tuple when not intended to.  I intend to patch these separately.

These modules only have print statements:  ColorDelegator, EditorWindow, FileList, MultiCall, Percolator, ScrolledList, UndoDelegator, WindowList, rpc.py, run.py.

I believe these could all be patched correctly most easily with the help of 2to3 with just the print fixer used. The last two use >>file.

MultiCall also has commented-out prints. RemoteDebugger only has such.
These could be uncommented, fixed, and recommented in a separate patch.

Any adjustment of print args to match 3.x should at least be a separate patch, if not issue.
History
Date User Action Args
2015-07-19 22:18:41terry.reedysetrecipients: + terry.reedy, serhiy.storchaka
2015-07-19 22:18:41terry.reedysetmessageid: <1437344321.63.0.544143198256.issue24671@psf.upfronthosting.co.za>
2015-07-19 22:18:41terry.reedylinkissue24671 messages
2015-07-19 22:18:41terry.reedycreate