[Python-3000] Signature of RawIOBase.read() ?

Antoine Pitrou solipsis at pitrou.net
Mon Jul 28 20:45:10 CEST 2008


There is an uncertainty in the signature for RawIOBase.read().
PEP 3116 says:
    read(n: int) -> bytes

but current io.py says:
    def read(self, n: int = -1) -> bytes:

Is omitting the `n` parameter always supported by RawIOBase implementations?
(meaning: read up to the end)



More information about the Python-3000 mailing list