Greg Ward added the comment:

The particular use case that triggered this: Mercurial's test suite. It runs 
"hg blah blah" and compares the output against known good output. But 
Mercurial's output is just bytes, because pretty much everything in a Mercurial 
repo is just bytes (file data of course, but also filenames and even changeset 
metadata like usernames).

So attempting to run the Mercurial test suite under 3.x immediately fails hard. 
The boiled-down essence of the bug is this:

>>> import difflib
>>> a = b"hello world"
>>> b = b"goodbye world"
>>> [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 <listcomp>
  File "/home/greg/src/cpython/3.2/Lib/difflib.py", line 1224, in unified_diff
    yield '-' + line
TypeError: Can't convert 'int' object to str implicitly

----------
nosy: +durin42, gward

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17445>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to