The cmpcache module

(Obsolete, only in 1.5.2). This module contains a function to compare two files. It’s an extension of the cmp module, in that it keeps a cache over recently made comparisons.

Example: Using the cmpcache module
# File:

import cmpcache

if cmpcache.cmp("samples/", "samples/sample.wav"):
    print "files are identical"
    print "files differ!"
files differ!

In Python 2.0 and later, this module has been replaced by the filecmp module.


A Django site. rendered by a django application. hosted by webfaction.