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 p-ganssle
Recipients benjamin.peterson, jondaa, p-ganssle, vstinner, xtreak
Date 2019-02-27.14:37:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1551278262.23.0.239514684038.issue35417@roundup.psfhosted.org>
In-reply-to
Content
> 2to3 is designed as a tool to convert a Python 2 code base to Python 3 at once. I understand that once the code base is converted, you may want to revert some unwanted "useless" changes.

While this problem is likely to show up because someone has run 2to3 on a codebase more than once, I have *always* used parentheses around my print statements, even in pure Python 2, so it's not necessarily the case that this will cause problems.

I think this is a legitimate bug but also harmless since the code it generates is equivalent to the version with only one set of parentheses. I don't see a great deal of harm in marking this as low priority and leaving the bug open for someone to fix later, other than the fact that if someone comes along and fixes it, they may be discouraged to find that there are not really core developers interested in reviewing and merging the PR.

I will note that with the end of Python 2, 2to3 may become *more* relevant as fewer and fewer people are looking to translate code from 2->2/3 and more people will be looking to translate 2->3 directly.
History
Date User Action Args
2019-02-27 14:37:42p-gansslesetrecipients: + p-ganssle, vstinner, benjamin.peterson, xtreak, jondaa
2019-02-27 14:37:42p-gansslesetmessageid: <1551278262.23.0.239514684038.issue35417@roundup.psfhosted.org>
2019-02-27 14:37:42p-gansslelinkissue35417 messages
2019-02-27 14:37:42p-gansslecreate