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 gward
Recipients barry, durin42, gward, ncoghlan, r.david.murray, terry.reedy
Date 2013-03-18.18:43:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The original reproduction I posted was incorrect -- it makes difflib look worse than it should. (I passed strings rather than lists of strings.) Here is a more accurate version:

>>> import difflib
>>> a = [b'hello']
>>> b = [b'hello!']
>>> '\n'.join(line for line in difflib.unified_diff(a, b))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 1, in <genexpr>
  File "/home/greg/src/cpython/3.3/Lib/", line 1223, in unified_diff
    yield '-' + line
TypeError: Can't convert 'bytes' object to str implicitly

So it still crashes, but the exception makes it pretty clear what the problem is.
Date User Action Args
2013-03-18 18:43:01gwardsetrecipients: + gward, barry, terry.reedy, ncoghlan, durin42, r.david.murray
2013-03-18 18:43:01gwardsetmessageid: <>
2013-03-18 18:43:01gwardlinkissue17445 messages
2013-03-18 18:43:01gwardcreate