peps: 16f60cd918e0 (original) (raw)
Mercurial > peps
changeset 6212:16f60cd918e0
PEP 511 Remove changes already merged into CPython: * code.co_lnotab: support negative line number delta https://bugs.python.org/issue26107 * enhance compiler to handle correctly tuple and frozenset constants http://bugs.python.org/issue25843 * ast.Constant: http://bugs.python.org/issue26146 * enhance marshal to use the empty frozenset singleton http://bugs.python.org/issue26146 These changes were not directly related to this PEP, but more generally enhancements to write AST code transformers (especially AST optimizers).
Victor Stinner victor.stinner@gmail.com | |
---|---|
date | Wed, 27 Jan 2016 12:19:37 +0100 |
parents | 30775037bd14 |
children | 607c03cd23e9 |
files | pep-0511.txt |
diffstat | 1 files changed, 0 insertions(+), 15 deletions(-)[+] [-] pep-0511.txt 15 |
line wrap: on
line diff
--- a/pep-0511.txt +++ b/pep-0511.txt @@ -314,7 +314,6 @@ In short, add:
- sys.implementation.optim_tag
- sys.get_code_transformers()
- sys.set_code_transformers(transformers) -* ast.Constant
- ast.PyCF_TRANSFORMED_AST @@ -406,20 +405,6 @@ Enhancements to simplify the implementat
- Add a new compiler flag
PyCF_TRANSFORMED_AST
to get the transformed AST.PyCF_ONLY_AST
returns the AST before the transformers. -* Addast.Constant
: this type is not emited by the compiler, but
- can be used in an AST transformer to simplify the code. It does not
- contain line number and column offset informations on tuple or
- frozenset items.
-*
PyCodeObject.co_lnotab
: line number delta becomes signed to - support moving instructions (note: need to modify MAGIC_NUMBER in
- importlib). Implemented in the `issue #26107
- https://bugs.python.org/issue26107`_
-* Enhance the bytecode compiler to support
tuple
andfrozenset
- constants. Currently,
tuple
andfrozenset
constants are - created by the peephole transformer, after the bytecode compilation.
-*
marshal
module: fix serialization of the empty frozenset singleton -* updateTools/parser/unparse.py
to support the newast.Constant
- node type Examples