1. 28 Jan, 2016 15 commits
  2. 29 Jan, 2016 2 commits
  3. 28 Jan, 2016 6 commits
  4. 29 Jan, 2016 2 commits
  5. 28 Jan, 2016 1 commit
  6. 27 Jan, 2016 6 commits
  7. 26 Jan, 2016 6 commits
  8. 25 Jan, 2016 2 commits
    • Victor Stinner's avatar
      Add ast.Constant · f2c1aa16
      Victor Stinner authored
      Issue #26146: Add a new kind of AST node: ast.Constant. It can be used by
      external AST optimizers, but the compiler does not emit directly such node.
      
      An optimizer can replace the following AST nodes with ast.Constant:
      
      * ast.NameConstant: None, False, True
      * ast.Num: int, float, complex
      * ast.Str: str
      * ast.Bytes: bytes
      * ast.Tuple if items are constants too: tuple
      * frozenset
      
      Update code to accept ast.Constant instead of ast.Num and/or ast.Str:
      
      * compiler
      * docstrings
      * ast.literal_eval()
      * Tools/parser/unparse.py
      f2c1aa16
    • Raymond Hettinger's avatar