Mercurial > cpython-lru_cache-weakref
view Doc/lib/libcmpcache.tex @ 17581:c1937faabb23 2.1
Added support for optional explanation parameter to the \versionadded
macro.
Refactored do_cmd_versionadded() and do_cmd_versionchanged() to do most
of the work in a helper function, with the do_cmd_*() wrappers just supplying
a portion of the replacement text.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Wed, 18 Apr 2001 17:29:14 +0000 |
| parents | 4b51d069be35 |
| children | 376ee174ecd0 |
line wrap: on
line source
\section{\module{cmpcache} --- Efficient file comparisons} \declaremodule{standard}{cmpcache} \sectionauthor{Moshe Zadka}{moshez@zadka.site.co.il} \modulesynopsis{Compare files very efficiently.} \deprecated{1.6}{Use the \refmodule{filecmp} module instead.} The \module{cmpcache} module provides an identical interface and similar functionality as the \refmodule{cmp} module, but can be a bit more efficient as it uses \function{statcache.stat()} instead of \function{os.stat()} (see the \refmodule{statcache} module for information on the difference). \strong{Note:} Using the \refmodule{statcache} module to provide \function{stat()} information results in trashing the cache invalidation mechanism: results are not as reliable. To ensure ``current'' results, use \function{cmp.cmp()} instead of the version defined in this module, or use \function{statcache.forget()} to invalidate the appropriate entries.
