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

2013-06-12 Thread Mark Levitt

Mark Levitt added the comment:

I've added a "clear_cache()" method to filecmp.py. Patch attached. 

I had thought about implementing an optional parameter to only invalidate the 
cache of a specific file object, but figured I'd keep it simple for now.

First time submitting a patch, so apologies if I've done something the wrong 
way.

--
keywords: +patch
nosy: +melevittfl
Added file: http://bugs.python.org/file30557/18149.patch

___
Python tracker 
<http://bugs.python.org/issue18149>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-06-12 Thread Mark Levitt

Mark Levitt added the comment:

Ned,

Thanks for taking the time to review. I've updated the docs, added a unit test, 
signed the contributor form, and made the changes/corrections from your review.

Updated patch attached.

--
Added file: http://bugs.python.org/file30565/18149-2.patch

___
Python tracker 
<http://bugs.python.org/issue18149>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-06-13 Thread Mark Levitt

Mark Levitt added the comment:

Cool. I've gone ahead and generated a new patch with the version added 
directive included.

--
Added file: http://bugs.python.org/file30571/18149-3.patch

___
Python tracker 
<http://bugs.python.org/issue18149>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com