This calls write() for each element in the sequence. The sequence can be any iterable object producing strings, typically a list of strings. This does not add line separators. There is no return value.
(self, sequence)
| 120 | self.send(s) |
| 121 | |
| 122 | def writelines(self, sequence): |
| 123 | '''This calls write() for each element in the sequence. |
| 124 | |
| 125 | The sequence can be any iterable object producing strings, typically a |
| 126 | list of strings. This does not add line separators. There is no return |
| 127 | value. |
| 128 | ''' |
| 129 | for s in sequence: |
| 130 | self.send(s) |
| 131 | |
| 132 | def send(self, s): |
| 133 | '''Send data to the subprocess' stdin. |