[issue18149] filecmp.cmp() incorrect results when previously compared file is modified within modification time resolution

Ned Deily report at bugs.python.org
Fri Jun 7 22:26:29 CEST 2013


Ned Deily added the comment:

It seems like this would be a fairly rare situation and, as you note, dependent on the underlying file system.  But it would be easy to add a new function to the module to clear its cache in cases where it is known this might be a problem.  In fact, in Issue11802 a clear_cache function was proposed to solve the problem of the cache growing without bounds but that problem was solved by the simpler solution of discarding the cache when it gets above 100 entries.

----------
keywords: +easy
nosy: +nadeem.vawda, ned.deily, rhettinger
stage:  -> needs patch
title: filecmp.cmp() - cache invalidation fails when file modification times haven't changed -> filecmp.cmp() incorrect results when previously compared file is modified within modification time resolution
versions: +Python 3.4 -Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18149>
_______________________________________


More information about the Python-bugs-list mailing list