parameters: (self)
return_statement: return hFile
docstring: @rtype:  L{FileHandle} or None
          @return: File handle to the main module, received from the system.
              Returns C{None} if the handle is not available.
function: def get_file_handle(self):
          """
          @rtype:  L{FileHandle} or None
          @return: File handle to the main module, received from the system.
              Returns C{None} if the handle is not available.
          """
          # This handle DOES need to be closed.
          # Therefore we must cache it so it doesn't
          # get closed after the first call.
          try:
              hFile = self.__hFile
          except AttributeError:
              hFile = self.raw.u.CreateProcessInfo.hFile
              if hFile in (0, win32.NULL, win32.INVALID_HANDLE_VALUE):
                  hFile = None
              else:
                  hFile = FileHandle(hFile, True)
              self.__hFile = hFile
          return hFile
function_tokens: def get_file_handle ( self ) : # This handle DOES need to be closed. # Therefore we must cache it so it doesn't # get closed after the first call. try : hFile = self . __hFile except AttributeError : hFile = self . raw . u . CreateProcessInfo . hFile if hFile in ( 0 , win32 . NULL , win32 . INVALID_HANDLE_VALUE ) : hFile = None else : hFile = FileHandle ( hFile , True ) self . __hFile = hFile return hFile