class - IO

 

 


IO

 

TextIOBase

  This class provides an unicode character and line based interface to stream I/O.
  It inherits IOBase
  unicode

  • read(n)
  • readline(limit=-1)   # limit characters will be read
  • tell()
  • write(s)

io.TextIOWrapper   

  A buffered text stream over a BufferedIOBase
  It inherits TextIOBase

BufferedIOBase

  Base class for binary streams that support some kind of buffering.
  It inherits IOBase.

read(n=-1)                     # Read and return up to n bytes.
                                    # None / negative read and returned until EOF is reached.
readinto(b)                    # Read up to len(b) bytes into bytearray b and return the number of bytes read.
                                   # BlockingIOError
write(n-byte)                  # IOError

BufferedRWPair

A buffered I/O object combining two unidirectional RawIOBase objects

It inherits BufferedIOBase