io.IOBase.flush()

flush() Flush the write buffers of the stream if applicable. This does nothing for read-only and non-blocking streams.

io.IOBase.fileno()

fileno() Return the underlying file descriptor (an integer) of the stream if it exists. An OSError is raised if the IO object does not use a file descriptor.

io.IOBase.closed

closed True if the stream is closed.

io.IOBase.close()

close() Flush and close this stream. This method has no effect if the file is already closed. Once the file is closed, any operation on the file (e.g. reading or writing) will raise a ValueError. As a convenience, it is allowed to call this method more than once; only the first call, however, will have an effect.

io.IOBase

class io.IOBase The abstract base class for all I/O classes, acting on streams of bytes. There is no public constructor. This class provides empty abstract implementations for many methods that derived classes can override selectively; the default implementations represent a file that cannot be read, written or seeked. Even though IOBase does not declare read(), readinto(), or write() because their signatures will vary, implementations and clients should consider those methods part of the in

io.IncrementalNewlineDecoder

class io.IncrementalNewlineDecoder A helper codec that decodes newlines for universal newlines mode. It inherits codecs.IncrementalDecoder.

io.FileIO.name

name The file name. This is the file descriptor of the file when no name is given in the constructor.

io.FileIO.mode

mode The mode as given in the constructor.

io.FileIO

class io.FileIO(name, mode='r', closefd=True, opener=None) FileIO represents an OS-level file containing bytes data. It implements the RawIOBase interface (and therefore the IOBase interface, too). The name can be one of two things: a character string or bytes object representing the path to the file which will be opened. In this case closefd must be True (the default) otherwise an error will be raised. an integer representing the number of an existing OS-level file descriptor to which the r

io.BytesIO.readinto1()

readinto1() In BytesIO, this is the same as readinto(). New in version 3.5.