Quantcast

[issue12932] dircmp does not allow non-shallow comparisons

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[issue12932] dircmp does not allow non-shallow comparisons

STINNER Victor

New submission from Kevin Smith <[hidden email]>:

While filecmp.cmp and filecmp.cmpfiles allow a shallow option to be specified to invoke a more involved comparison of files, filecmp.dircmp does not.  It is limited to shallow-only comparisons.  

This could be solved quite easily by adding a shallow keyword option to dircmp then changing the phase3 method to the following.

    def phase3(self): # Find out differences between common files
        xx = cmpfiles(self.left, self.right, self.common_files, self.shallow)
        self.same_files, self.diff_files, self.funny_files = xx

----------
components: Library (Lib)
messages: 143692
nosy: kesmit
priority: normal
severity: normal
status: open
title: dircmp does not allow non-shallow comparisons
type: feature request
versions: Python 2.6, Python 2.7

_______________________________________
Python tracker <[hidden email]>
<http://bugs.python.org/issue12932>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/lists%40nabble.com

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[issue12932] dircmp does not allow non-shallow comparisons

STINNER Victor

√Čric Araujo <[hidden email]> added the comment:

Thanks for the report.  Unfortunately 2.7 is closed to new features and the module is removed in 3.x, so there is nothing to do here.

----------
nosy: +eric.araujo
resolution:  -> out of date
stage:  -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <[hidden email]>
<http://bugs.python.org/issue12932>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/lists%2B1322467933539-512619%40n6.nabble.com

Loading...