[3.6] bpo-31232: Backport custom print rshift message by ncoghlan · Pull Request #3155 · python/cpython (original) (raw)

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.

https://bugs.python.org/issue31232