>>>>> Emile van Sebille <em...@fenx.com> (EvS) wrote: >EvS> On 6/11/2009 12:09 AM higer said... >>> Tool can certainly be used to compare two files,but I just want to >>> compare them using Python code. >>>
>EvS> difflib? If I understand correctly the OP just wanted to know whether two files were equal, not what the differences would be. In that case difflib is overkill. On the other hand `equal' has many meanings. Ignoring line endings is one option, ignoring trailing whitespace could be another one. Yet another one could be normalizing the character encoding, etc. -- Piet van Oostrum <p...@cs.uu.nl> URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4] Private email: p...@vanoostrum.org -- http://mail.python.org/mailman/listinfo/python-list