Python Filecmp Module
File comparison — cmp, cmpfiles, dircmp. This category documents 3 Python filecmp module entries, and each page gives you the full syntax, the parameter list, the return value, and a runnable example. The entries include: filecmp.cmp(), filecmp.cmpfiles(), filecmp.dircmp(). filecmp.cmp() compares two files for equality (by content, not metadata). filecmp.cmpfiles() compares files in two directories and returns 3 lists: match, mismatch, errors. filecmp.dircmp() creates a directory comparison object with detailed differences. Filecmp Module belongs to the System & OS group alongside OS Module, Sys Module, Platform Module, Getpass Module. You can also search across every category from the search page, browse the complete A–Z index, or try any example in the Python playground. Python Reference documents 978+ functions, methods, and modules across 114 categories of the standard library, and every entry in this Filecmp Module category follows the same format — syntax first, then what it does, the parameters it accepts, what it returns, and a working code example — so once you have read one page you can read them all.