Creates a new instance that receives messages from sys.stdin, and sends them to sys.stdout.
(cls, name="stdio")
| 73 | |
| 74 | @classmethod |
| 75 | def from_stdio(cls, name="stdio"): |
| 76 | """Creates a new instance that receives messages from sys.stdin, and sends |
| 77 | them to sys.stdout. |
| 78 | """ |
| 79 | return cls(sys.stdin.buffer, sys.stdout.buffer, name) |
| 80 | |
| 81 | @classmethod |
| 82 | def from_process(cls, process, name="stdio"): |