io.BufferedRWPair
¶
-
class
io.
BufferedRWPair
¶ A buffered reader and writer object together.
A buffered reader object and buffered writer object put together to form a sequential IO object that can read and write. This is typically used with a socket or two-way pipe.
reader and writer are RawIOBase objects that are readable and writeable respectively. If the buffer_size is omitted it defaults to DEFAULT_BUFFER_SIZE.
Methods¶
__enter__ |
|
__exit__ |
|
__format__ |
default object formatter |
__new__ ((S, ...) |
|
__reduce__ |
helper for pickle |
__reduce_ex__ |
helper for pickle |
__sizeof__ (() -> int) |
size of object in memory, in bytes |
__subclasshook__ |
Abstract classes can override this to customize issubclass(). |
_checkClosed |
|
_checkReadable |
|
_checkSeekable |
|
_checkWritable |
|
close |
|
detach |
Disconnect this buffer from its underlying raw stream and return it. |
fileno |
Returns underlying file descriptor if one exists. |
flush |
|
isatty |
|
peek |
|
read |
|
read1 |
|
readable |
|
readinto |
|
readline |
Read and return a line from the stream. |
readlines |
Return a list of lines from the stream. |
seek |
Change stream position. |
seekable |
Return whether object supports random access. |
tell |
Return current stream position. |
truncate |
Truncate file to size bytes. |
writable |
|
write |
|
writelines |