Return the bytes value (contents) of the buffer
(self)
| 890 | return self.__dict__.copy() |
| 891 | |
| 892 | def getvalue(self): |
| 893 | """Return the bytes value (contents) of the buffer |
| 894 | """ |
| 895 | if self.closed: |
| 896 | raise ValueError("getvalue on closed file") |
| 897 | return bytes(self._buffer) |
| 898 | |
| 899 | def getbuffer(self): |
| 900 | """Return a readable and writable view of the buffer. |
no outgoing calls