[issue30721] Show expected input for right shift operator usage in custom "print" error message

Nick Coghlan report at bugs.python.org
Fri Aug 18 07:00:15 EDT 2017


Nick Coghlan added the comment:

Checking the merged implementation locally, I belatedly noticed that we forgot the trailing question mark on the question:

```
>>> import sys
>>> print >> sys.stderr
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and '_io.TextIOWrapper'. Did you mean "print(<message>, file=<output_stream>)"
```

So putting this back to "needs patch" (no NEWS entry needed, just the missing question marks in the patch and the tests).

----------
stage: patch review -> needs patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30721>
_______________________________________


More information about the Python-bugs-list mailing list