source: vendor/python/2.5/Doc/lib/libcmpcache.tex

Last change on this file was 3225, checked in by bird, 18 years ago

Python 2.5

File size: 916 bytes
Line 
1\section{\module{cmpcache} ---
2 Efficient file comparisons}
3
4\declaremodule{standard}{cmpcache}
5\sectionauthor{Moshe Zadka}{moshez@zadka.site.co.il}
6\modulesynopsis{Compare files very efficiently.}
7
8\deprecated{1.6}{Use the \refmodule{filecmp} module instead.}
9
10The \module{cmpcache} module provides an identical interface and similar
11functionality as the \refmodule{cmp} module, but can be a bit more efficient
12as it uses \function{statcache.stat()} instead of \function{os.stat()}
13(see the \refmodule{statcache} module for information on the
14difference).
15
16\note{Using the \refmodule{statcache} module to provide
17\function{stat()} information results in trashing the cache
18invalidation mechanism: results are not as reliable. To ensure
19``current'' results, use \function{cmp.cmp()} instead of the version
20defined in this module, or use \function{statcache.forget()} to
21invalidate the appropriate entries.}
Note: See TracBrowser for help on using the repository browser.