]> granicus.if.org Git - python/commit
[3.6] bpo-31232: Backport custom print rshift message (GH-3155)
authorNick Coghlan <ncoghlan@gmail.com>
Sat, 19 Aug 2017 06:59:38 +0000 (16:59 +1000)
committerGitHub <noreply@github.com>
Sat, 19 Aug 2017 06:59:38 +0000 (16:59 +1000)
commit1a05e87ec75436d818f05a5dabcecaea67334cbd
tree1ce98f474172605ce4ca1916159a4f99e2a5a824
parentb50e7683acac36ff16e6c6c2c32d9a15e46b5174
[3.6] bpo-31232: Backport custom print rshift message (GH-3155)

bpo-30721 added a "Did you mean ...?" suggestion to rshift
TypeError messages that triggers when the LHS is a Python
C function called "print".

Since this custom error message is expected to be triggered
primarily by attempts to use Python 2 print redirection syntax
in Python 3, and is incredibly unlikely to be encountered
otherwise, it is also being backported to the next 3.6
maintenance release.

Initial patch by Sanyam Khurana.
Lib/test/test_print.py
Misc/NEWS.d/next/Core and Builtins/2017-08-18-15-15-20.bpo-30721.Hmc56z.rst [new file with mode: 0644]
Objects/abstract.c