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 <rep...@bugs.python.org>
<http://bugs.python.org/issue18149>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to