Creates a new instance that receives messages from process.stdin, and sends them to process.stdout.
(cls, process, name="stdio")
| 80 | |
| 81 | @classmethod |
| 82 | def from_process(cls, process, name="stdio"): |
| 83 | """Creates a new instance that receives messages from process.stdin, and sends |
| 84 | them to process.stdout. |
| 85 | """ |
| 86 | return cls(process.stdout, process.stdin, name) |
| 87 | |
| 88 | @classmethod |
| 89 | def from_socket(cls, sock, name=None): |