[issue6306] filecmp.cmp can not compare two files from different OS with the same content

R. David Murray report at bugs.python.org
Thu Jun 18 14:50:22 CEST 2009


R. David Murray <rdmurray at bitdance.com> added the comment:

If you do not want to compare them by reading line by line, then you are
doing a binary comparison (which is what filecmp does) and the two files
are, indeed, different.  If you want to compare them in text mode, you
are moving into 'diff' territory and could use difflib instead.

If you nevertheless want to propose an additional
text-and-universal-newline-mode version of cmp (it would be best if you
were prepared to write the patch), please bring it up on python-ideas
for community discussion, as it is not clear that it is a good idea.  If
you get a consensus that it is a good idea you can reopen this ticket
with a pointer to the discussion.

----------
nosy: +r.david.murray
priority:  -> low
resolution:  -> rejected
status: open -> pending
versions: +Python 2.7, Python 3.2 -Python 2.5

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


More information about the Python-bugs-list mailing list