parameters: (self)
docstring: Opens the record file.
docstring_summary: Opens the record file.
docstring_tokens: Opens the record file .
function: def open(self):
          """Opens the record file."""
          if self.flag == "w":
              check_call(_LIB.MXRecordIOWriterCreate(self.uri, ctypes.byref(self.handle)))
              self.writable = True
          elif self.flag == "r":
              check_call(_LIB.MXRecordIOReaderCreate(self.uri, ctypes.byref(self.handle)))
              self.writable = False
          else:
              raise ValueError("Invalid flag %s"%self.flag)
          # pylint: disable=not-callable
          # It's bug from pylint(astroid). See https://github.com/PyCQA/pylint/issues/1699
          self.pid = current_process().pid
          self.is_open = True
function_tokens: def open ( self ) : if self . flag == "w" : check_call ( _LIB . MXRecordIOWriterCreate ( self . uri , ctypes . byref ( self . handle ) ) ) self . writable = True elif self . flag == "r" : check_call ( _LIB . MXRecordIOReaderCreate ( self . uri , ctypes . byref ( self . handle ) ) ) self . writable = False else : raise ValueError ( "Invalid flag %s" % self . flag ) # pylint: disable=not-callable # It's bug from pylint(astroid). See https://github.com/PyCQA/pylint/issues/1699 self . pid = current_process ( ) . pid self . is_open = True