parameters: (self, mutex=None, stateChange=None, name=None)
docstring: name' can be set for debugging, it will be used in log messages.
docstring_summary: name' can be set for debugging, it will be used in log messages.
docstring_tokens: name can be set for debugging it will be used in log messages .
function: def __init__(self, mutex=None, stateChange=None, name=None):
          """'name' can be set for debugging, it will be used in log messages."""
          if name is not None:
              self._name = name
          else:
              self._name = id(self)
          log.info("[%s] IOBuffer.__init__()" % self._name)
  
          self.__buf = ''
          # A state change is defined as the buffer being closed or a
          # write occuring.
          if mutex is not None:
              self._mutex = mutex
          else:
              self._mutex = threading.Lock()
          if stateChange is not None:
              self._stateChange = stateChange
          else:
              self._stateChange = threading.Condition()
          self._closed = 0
function_tokens: def __init__ ( self , mutex = None , stateChange = None , name = None ) : if name is not None : self . _name = name else : self . _name = id ( self ) log . info ( "[%s] IOBuffer.__init__()" % self . _name ) self . __buf = '' # A state change is defined as the buffer being closed or a # write occuring. if mutex is not None : self . _mutex = mutex else : self . _mutex = threading . Lock ( ) if stateChange is not None : self . _stateChange = stateChange else : self . _stateChange = threading . Condition ( ) self . _closed = 0