bpo-29469: Move constant folding to AST optimizer (GH-2858)

This commit is contained in:
INADA Naoki 2017-12-14 16:47:20 +09:00 committed by GitHub
parent b5fd9ad05e
commit 7ea143ae79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 4432 additions and 3967 deletions

View file

@ -75,6 +75,8 @@ PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name);
#define PY_INVALID_STACK_EFFECT INT_MAX
PyAPI_FUNC(int) PyCompile_OpcodeStackEffect(int opcode, int oparg);
PyAPI_FUNC(int) _PyAST_Optimize(struct _mod *, PyArena *arena);
#ifdef __cplusplus
}
#endif