parameters: (text, filename='<string>')
docstring: Is this string a valid Python script?
docstring_summary: Is this string a valid Python script?
docstring_tokens: Is this string a valid Python script?
function: def is_python(text, filename='<string>'):
      "Is this string a valid Python script?"
      try:
          compile(text, filename, 'exec')
      except (SyntaxError, TypeError):
          return False
      else:
          return True
function_tokens: def is_python ( text , filename = '<string>' ) : try : compile ( text , filename , 'exec' ) except ( SyntaxError , TypeError ) : return False else : return True