-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
gh-101819: Adapt _io._BufferedIOBase_Type methods to Argument Clinic #104355
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
Changes from 1 commit
98dd91b
fc14019
34c3e99
7c785b3
28fc57e
940db40
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -141,8 +141,8 @@ _io._BufferedIOBase.read | |
|
|
||
| Read and return up to n bytes. | ||
|
|
||
| If the argument is omitted, None, or negative, reads and | ||
| returns all data until EOF | ||
| If the argument is omitted, None, or negative, read and | ||
| return all data until EOF | ||
|
|
||
| If the argument is positive, and the underlying raw stream is | ||
| not 'interactive', multiple raw reads may be issued to satisfy | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be nice to clarify what "interactive" means. I suppose that it's related to "is it a TTY?" test. The doc uses the same phrasing: https://docs.python.org/dev/library/io.html#io.BufferedIOBase.read
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah. Let's improve that in a separate issue/PR. Good observation, though! |
||
|
|
@@ -160,7 +160,7 @@ mode and no data is available at the moment. | |
| static PyObject * | ||
| _io__BufferedIOBase_read_impl(PyObject *self, PyTypeObject *cls, | ||
| PyObject *args) | ||
| /*[clinic end generated code: output=4521b30940fd7b67 input=7e26b448274234a0]*/ | ||
| /*[clinic end generated code: output=4521b30940fd7b67 input=83f4490585256485]*/ | ||
| { | ||
| _PyIO_State *state = IO_STATE(); | ||
| return bufferediobase_unsupported(state, "read"); | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.