parameters: (path)
return_statement: return stat.S_ISREG(st.st_mode)
docstring: Test whether a path is a regular file
docstring_summary: Test whether a path is a regular file
docstring_tokens: Test whether a path is a regular file
function: def isfile(path):
      """Test whether a path is a regular file"""
      try:
          st = os.stat(path)
      except os.error:
          return False
      return stat.S_ISREG(st.st_mode)
function_tokens: def isfile ( path ) : try : st = os . stat ( path ) except os . error : return False return stat . S_ISREG ( st . st_mode )