check if files are the same on Windows

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Mon Mar 19 12:15:18 EDT 2007


In <1174320587.618875.48290 at y66g2000hsf.googlegroups.com>, Beliavsky
wrote:

> […] How should one check that files are the same in Python? The files
> are plain text.

Take a look at the `filecmp` module.  Pay attention to the shallow
argument of `filecmp.cmp()` and the default value!

Ciao,
	Marc 'BlackJack' Rintsch




More information about the Python-list mailing list