• Victor Stinner's avatar
    Add ast.Constant · f2c1aa16
    Victor Stinner yazdı
    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
Adı
Son kayıt (commit)
Son güncelleme
..
buildbot Loading commit data...
ccbench Loading commit data...
clinic Loading commit data...
demo Loading commit data...
freeze Loading commit data...
gdb Loading commit data...
hg Loading commit data...
i18n Loading commit data...
importbench Loading commit data...
iobench Loading commit data...
msi Loading commit data...
parser Loading commit data...
pybench Loading commit data...
pynche Loading commit data...
scripts Loading commit data...
ssl Loading commit data...
stringbench Loading commit data...
test2to3 Loading commit data...
unicode Loading commit data...
unittestgui Loading commit data...
README Loading commit data...