| ★ wanayoo — archive 1999 http://www.python.org/doc/current/lib/module-cmp.html | Nouvelle recherche | Portail wanayoo |
The cmp module defines a function to compare files, taking all sort of short-cuts to make it a highly efficient operation.
The cmp module defines the following function:
Example:
>>> import cmp
>>> cmp.cmp('libundoc.tex', 'libundoc.tex')
1
>>> cmp.cmp('libundoc.tex', 'lib.tex')
0