Commit Graph

20 Commits

Author SHA1 Message Date
Victor Stinner 9d8fd95001 Reject my own PEP 511 (code transformers) 2017-10-17 22:22:17 +02:00
diana 422c4819d4 pep 511 typo: extra space (#343) 2017-08-15 19:48:24 +10:00
Marti Raudsepp 04a6af2ab1 Fix various typos, spelling and grammar errors
Errors detected using Topy (https://github.com/intgr/topy), all changes
verified by hand.
2016-07-11 18:35:35 +03:00
Victor Stinner 30a8962c72 PEP 511: link python-ideas discussion 2016-02-29 15:52:38 +01:00
Victor Stinner 2002aa056a PEP 511: code transformer context 2016-02-13 02:54:18 +01:00
Victor Stinner 4da7e41f94 PEP 511: update bytecode example 2016-02-13 01:29:05 +01:00
Victor Stinner 313f3f46f6 PEP 511: mention also PyCC by Kevin Conway 2016-01-27 17:37:44 +01:00
Victor Stinner 3e7419f50e 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).
2016-01-27 12:19:37 +01:00
Victor Stinner 3910522c12 PEP 511
* Change code_transformer() API. The method now takes a code object as input
  and must return a code object.
* Be more explicit: code_transformer() and ast_transformer() are methods taking
  a self parameter.
2016-01-27 11:29:51 +01:00
Victor Stinner 796880beeb PEP 511: reorganize 2016-01-15 23:19:59 +01:00
Victor Stinner 78f8a7d3a9 PEP 511: reformat to send by email 2016-01-15 17:12:31 +01:00
Victor Stinner 77c59a0cdd PEP 511
* bytecode => code
* more fun with bytecode
* enhance the Changes section
2016-01-15 16:18:00 +01:00
Victor Stinner 5af754e05f PEP 511: add bytecode transformers 2016-01-15 12:54:09 +01:00
Victor Stinner e969ebe7de PEP 511:
* usage: obfuscator!
* impact on other python implementations
* disable peephole optimizer
* link to the old python-dev discussion
2016-01-15 02:39:03 +01:00
Victor Stinner 307af6e57e PEP 511: add list of AST optimizer issues 2016-01-15 02:14:44 +01:00
Victor Stinner ac6203d00f PEP 511
* Fix the API: use sys.get/set_ast_transformers()
* elaborate changes on importlib, try to be more concrete
* add more examples of usage of AST transformers
2016-01-15 01:44:58 +01:00
Victor Stinner 0f15bdb06e PEP 511: add usages to the rationale 2016-01-15 01:01:05 +01:00
Victor Stinner 4fbc954904 PEP 511: add link to issue #26107 2016-01-14 10:15:32 +01:00
Victor Stinner 8a8791f816 PEP 511: add the text of the PEP 2016-01-13 00:57:21 +01:00
Victor Stinner 3e764abbb9 reserve PEP number 511 for the API of AST transformers 2016-01-12 14:57:02 +01:00