Bahram Aghaei <aghaee.bah...@gmail.com> added the comment:

Well, I think because the io module provides Python’s main facilities for 
dealing with various types of I/O, so using io.DEFAULT_BUFFER_SIZE is a kind of 
standard buffer size. I don't see any scientific reason for choosing the 8 * 
1024 inside the filecmp module.

My guess is that guy wanted to use something that is fairly small and would be 
okay in different circumstances (OSs) and the idea of DEFAULT_BUFFER_SIZE is 
the same thing.

I think, the chances are high that in the future as computers reinforce, we 
might change the buffer size as well. So using the io.DEFAULT_BUFFER_SIZE will 
guarantee that we only change io.DEFAULT_BUFFER_SIZE and every module would be 
okay automatically?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39189>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to