binary file woes... (was: Re: chr(26) => file reading bug)

Fredrik Lundh effbot at
Tue Mar 28 23:26:49 CEST 2000

Jeff Senn <senn at> wrote:
> Reminds me -- I noticed the other day that '' opens files in
> default/non-binary mode which nearly caused me to delete a whole bunch
> of non-different files... :-( given the name of the module and the
> analogous unix command -- this is probably the wrong behavior...

this is fixed in the CVS version.  on the other hand, the
entire module is deprecated (it's moved to lib-old).

looks like it's replaced by a module called 'filecmp', which
provides essentially the same interface (a 'cmp' function),
with some extra optional parameters.


More information about the Python-list mailing list