Write list of strings to file. The sequence can be any iterable object producing strings. This is equivalent to calling :meth:`write` for each string.
(self, sequence)
| 236 | return 0 |
| 237 | |
| 238 | def writelines(self, sequence): |
| 239 | # type: (Sequence[str]) -> None |
| 240 | """Write list of strings to file. |
| 241 | |
| 242 | The sequence can be any iterable object producing strings. |
| 243 | This is equivalent to calling :meth:`write` for each string. |
| 244 | """ |
| 245 | for part in sequence: |
| 246 | self.write(part) |
| 247 | |
| 248 | def flush(self): |
| 249 | # This object is not buffered so any :meth:`flush` |