New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc update for io module #51271
Comments
*Propositions of doc update* *RawIOBase*.read(n: int) -> bytes Read up to n bytes from the object and return them. Fewer than n bytes <warning - this proposition requires patching teh current implementation start and end are used as slice indexes, so that the bytearray taken Read up to len(range) bytes from the object and store them in b, returning |
If you are requesting new # b is your bytearray, f your IO object
m = memoryview(b)[start:end]
f.readinto(m) If you still want that feature, please open a separate bug (doc updates As for the first part of the report (RawIOBase.read), I'll look into it. |
Actually, I'm not sure what is wrong with the current doc: read(n=-1)¶ |
Thanks for the memoryview tip - I though I was up-to-date with python's As for the simple doc update, I was just pointing out the fact that EOF |
Ok, I've improved the docs a bit in r75168. Thanks! |
Thanks a lot B-) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: