io.IOBase.writable

IOBase.writable()

Return whether object was opened for writing.

If False, read() will raise IOError.