-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
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
asyncio.streams.FlowControlMixin should be part of the API #79174
Comments
This issue report is based on a SO question "How to create asyncio stream reader/writer for stdin/stdout?", its answer and comments. Link: https://stackoverflow.com/q/52089869/5378816 The key point is that two unidirectional pipes should be used the same way as one bidirectional network socket. The answer (more precisely the Linux/Unix part of it) and some following comments - both created by highly competent SO members - suggest that FlowControlMixin is a useful class required to write a proper code for this and similar usecases. That's why the FlowControlMixin or an equivalent should be made available to asyncio programmers as a documented part of the library. |
asvetlov: need to handle this usecase with the new API; -1 on exposing FlowControlMixin though. |
|
FlowControlMixing is a private API class. The reason is: we want to keep freedom for changing asyncio internals without breaking backward compatibility. |
bpo-36889 deprecates using FlowXontrolMixin outside of asyncio |
It's not recommended to use it directly, but copy into own project, so do just that. See python/cpython#79174
It's not recommended to use it directly, but copy into own project, so do just that. See python/cpython#79174
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: