Return whether the file was opened for writing.
(self)
| 146 | return self._mode == _MODE_READ |
| 147 | |
| 148 | def writable(self): |
| 149 | """Return whether the file was opened for writing.""" |
| 150 | self._check_not_closed() |
| 151 | return self._mode == _MODE_WRITE |
| 152 | |
| 153 | def peek(self, n=0): |
| 154 | """Return buffered data without advancing the file position. |