[issue23214] BufferedReader.read1(size) signature incompatible with BufferedIOBase.read1(size=-1)

STINNER Victor report at bugs.python.org
Thu Oct 20 22:28:14 EDT 2016


STINNER Victor added the comment:

-   .. method:: read1(size=-1)
+   .. method:: read1([size])

I don't understand this change: the default size is documented as -1. Did I miss something?

+      If *size* is −1 (the default)

Is the "−" character deliberate in "−1"? I would expected ``-1``.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23214>
_______________________________________


More information about the Python-bugs-list mailing list