keyword.py 945 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. """Keywords (from "Grammar/Grammar")
  2. This file is automatically generated; please don't muck it up!
  3. To update the symbols in this file, 'cd' to the top directory of
  4. the python source tree and run:
  5. python3 -m Parser.pgen.keywordgen Grammar/Grammar \
  6. Grammar/Tokens \
  7. Lib/keyword.py
  8. Alternatively, you can run 'make regen-keyword'.
  9. """
  10. __all__ = ["iskeyword", "kwlist"]
  11. kwlist = [
  12. 'False',
  13. 'None',
  14. 'True',
  15. 'and',
  16. 'as',
  17. 'assert',
  18. 'async',
  19. 'await',
  20. 'break',
  21. 'class',
  22. 'continue',
  23. 'def',
  24. 'del',
  25. 'elif',
  26. 'else',
  27. 'except',
  28. 'finally',
  29. 'for',
  30. 'from',
  31. 'global',
  32. 'if',
  33. 'import',
  34. 'in',
  35. 'is',
  36. 'lambda',
  37. 'nonlocal',
  38. 'not',
  39. 'or',
  40. 'pass',
  41. 'raise',
  42. 'return',
  43. 'try',
  44. 'while',
  45. 'with',
  46. 'yield'
  47. ]
  48. iskeyword = frozenset(kwlist).__contains__