[issue6304] Confusing error message when passing bytes to print with file pointing to a binary file
report at bugs.python.org
Thu Jun 18 09:03:41 CEST 2009
Georg Brandl <georg at python.org> added the comment:
How would you propose to fix this? print() should certainly not catch
all TypeErrors and raise a new one...
Maybe exception chaining could be used, so that print raises a TypeError
of its own with the cause being the original message?
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list