parameters: (s)
return_statement: return stat.S_ISDIR(st.st_mode)
docstring: Return true if the pathname refers to an existing directory.
docstring_summary: Return true if the pathname refers to an existing directory.
docstring_tokens: Return true if the pathname refers to an existing directory .
function: def isdir(s):
      """Return true if the pathname refers to an existing directory."""
      try:
          st = os.stat(s)
      except os.error:
          return False
      return stat.S_ISDIR(st.st_mode)
function_tokens: def isdir ( s ) : try : st = os . stat ( s ) except os . error : return False return stat . S_ISDIR ( st . st_mode )