parameters: (self, b)
docstring: Write bytes b to file, return number written.
  
          Only makes one system call, so not all of the data may be written.
          The number of bytes actually written is returned.  In non-blocking mode,
          returns None if the write would block.
docstring_summary: Write bytes b to file, return number written.
docstring_tokens: Write bytes b to file return number written .
function: def write(self, b):
          """Write bytes b to file, return number written.
  
          Only makes one system call, so not all of the data may be written.
          The number of bytes actually written is returned.  In non-blocking mode,
          returns None if the write would block.
          """
          self._checkClosed()
          self._checkWritable()
          try:
              return os.write(self._fd, b)
          except BlockingIOError:
              return None
function_tokens: def write ( self , b ) : self . _checkClosed ( ) self . _checkWritable ( ) try : return os . write ( self . _fd , b ) except BlockingIOError : return None