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 CuriousLearner, ammar2, corona10, eric.smith, iritkatriel, ncoghlan, nitishch, pablogsal, piyushhajare, serhiy.storchaka, terry.reedy, veky, xtreak
Date 2021-02-19.07:43:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
'Consistency' is in the eye of the beholder in that it is relative to some ideal.  'Inconsistent' has too much baggage as bad'.  I would prefer to call the current rule 'restricted' or 'limited' and judge any expansion on its own merits.

The arguments to print can take an unbounded amount of space.  So a general message "Did you mean print(<full argument list>)?" could also be indefinitely long.  I don't think this is a good idea.  Of course, the same applies to a single literal, especially multiline string literals.  But at least the latter are currently clipped to only the first line in the message.

>>> print '''first line
second line'''
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('''first line)?

(The above would be better with trailing ... .) This abbreviation would be harder with multiple arguments.  The special message is for beginners.  They might print a literal or name without ()s more frequently.  I not sure that they need the reminder with every mistake.
Date User Action Args
2021-02-19 07:43:52terry.reedysetrecipients: + terry.reedy, ncoghlan, eric.smith, serhiy.storchaka, veky, ammar2, CuriousLearner, corona10, nitishch, pablogsal, xtreak, piyushhajare, iritkatriel
2021-02-19 07:43:52terry.reedysetmessageid: <>
2021-02-19 07:43:52terry.reedylinkissue34013 messages
2021-02-19 07:43:52terry.reedycreate