parameters: ( pathname )
return_statement: return result
docstring: Check that a given file exists.
docstring_summary: Check that a given file exists.
docstring_tokens: Check that a given file exists .
function: def  file_exists( pathname ):
      """Check that a given file exists."""
      result = 1
      try:
          file = open( pathname, "r" )
          file.close()
      except:
          result = None
          sys.stderr.write( pathname + " couldn't be accessed\n" )
  
      return result
function_tokens: def file_exists ( pathname ) : result = 1 try : file = open ( pathname , "r" ) file . close ( ) except : result = None sys . stderr . write ( pathname + " couldn't be accessed\n" ) return result