Source

pypy / pypy / interpreter / astcompiler / consts.py

Author Commit Message Labels Comments Date
Antonio Cuni
bah, our old value for CO_CONTAINSGLOBAL conflicts with PyCF_IGNORE_COOKIE. Add a test to check that we don't have duplicate flags, fix the value of CO_CONTAINSGLOBAL and remove a magic number from test_code_extra, which now passes
Dan Villiom Podlaski Christiansen
No-op merge to register the merge done in 0e3099e3cc33 with Mercurial.
Branches
fast-forward
Benjamin Peterson
merge from trunk
Branches
fast-forward
Benjamin Peterson
add from __future__ import unicode_literals support
Branches
fast-forward
Benjamin Peterson
add print() function and print_function __future__
Branches
fast-forward
Carl Friedrich Bolz
Add two new flags to code objects: CO_CONTAINSLOOP, CO_CONTAINSGLOBALS. CO_CONTAINSLOOP is used by the JIT to figure out which functions to inline without having to go over the bytecode every time again. CO_CONTAINSGLOBALS is used by the celldict implementation to check whether the function contains a LOAD_GLOBAL or LOAD_NAME. If neither is there, executing the function can proceed without finding the globals cache.
Benjamin Peterson
remove unused constants
Maciej Fijalkowski
*cough*. Make sure that we behave like cpython. This is rather obscure, but I bet *someone* depends on it
Carl Friedrich Bolz
use official name of the abs import flag
Bruno Gola
absolute import support. astbuilder and astcompiler already done, missing the new import behavior (when __future__.asbolute_import) in importing.py
Ludovic Aubry
(adim,ludal) allow the AST tree to be exported to application level also export the grammar rules all attributes of all AST nodes are made available can install a callback with parser.install_compiler_hook which allows modification of AST just before compilation
Anders Chrigström
(Arre, Samuele) Port the scope ambiguity fix from stablecompiler and make gen-exprs work (allmost).
Ludovic Aubry
(ludal, nik) + port modifications from stablecompiler to astcompiler + modify astgen.py so that it doesn't generate __eq__ on ast.Node