Issue 15430: Improve filecmp documentation (original) (raw)

Some comments on the patch:

I would consider including the units for the value here (e.g. "The buffer size value in bytes...").

Should this instead read something like, "When the shallow flag is set to False, the file contents will be read and compared, reading :data:filecmp.BUFSIZE bytes at a time." The current wording suggests that only the first BUFSIZE bytes will be looked at.

This change was already committed as part of issue 15250.

This change was already committed as part of issue 15250.

.. attribute:: common_dirs

The phrase "using the class's file comparison operator" should not be added to common_dirs. common_dirs does not look at file contents.

.. attribute:: common_files

The phrase "whose contents differ according to the class's file comparison operator" should not be added to common_files. common_files does not look at file contents.

.. attribute:: same_files

This line should reflect the change committed for issue 15250.

.. attribute:: diff_files

This line should reflect the change committed for issue 15250.

This bug report can be closed as the patch, written by me is no longer valid. The only useful addition it can bring is, exposing the BUFSIZE, but that is used transparently by the module and I think, it need not be exposed via documentation.