cpython/Tools
Victor Stinner f2c1aa1661 Add ast.Constant
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
2016-01-26 00:40:57 +01:00
..
buildbot Removes deprecated -n option from buildbot script. 2015-10-08 09:06:17 -07:00
ccbench
clinic Issue #24000: Improved Argument Clinic's mapping of converters to legacy 2015-05-07 23:30:09 -07:00
demo Issue #16261: Converted some bare except statements to except statements 2015-05-20 10:33:40 +03:00
freeze merge 3.4 (#25504) 2015-10-29 21:11:22 -07:00
gdb Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
hg hgtouch: remove meta-variable from option spec 2014-03-09 10:22:10 +01:00
i18n #18128: use standard +NNNN timezone format in POT-Creation-Date header. 2015-04-16 12:15:09 -04:00
importbench
iobench
msi Issue #26065: Excludes venv from library when generating embeddable distro. 2016-01-16 13:45:32 -08:00
parser Add ast.Constant 2016-01-26 00:40:57 +01:00
pybench Removed unintentional trailing spaces in text files. 2015-03-29 19:12:58 +03:00
pynche Removed unintentional trailing spaces in text files. 2015-03-29 19:12:58 +03:00
scripts Issue #5319: New Py_FinalizeEx() API to exit with status 120 on failure 2015-11-30 03:18:29 +00:00
ssl Issue #23248: Update ssl error codes from latest OpenSSL git master. 2015-01-18 17:40:17 +01:00
stringbench Issue #19936: Added executable bits or shebang lines to Python scripts which 2014-01-16 17:33:23 +02:00
test2to3 Issue #19936: Remove executable bits from C source files and several forgotten 2014-01-16 18:48:45 +02:00
unicode upgrade to Unicode 8.0.0 2015-06-27 15:45:56 -05:00
unittestgui Removed unintentional trailing spaces in text files. 2015-03-29 19:12:58 +03:00
README

README

This directory contains a number of Python programs that are useful
while building or extending Python.

buildbot        Batchfiles for running on Windows buildslaves.

ccbench         A Python threads-based concurrency benchmark. (*)

demo            Several Python programming demos.

freeze          Create a stand-alone executable from a Python program.

gdb             Python code to be run inside gdb, to make it easier to
                debug Python itself (by David Malcolm).

i18n            Tools for internationalization. pygettext.py
                parses Python source code and generates .pot files,
                and msgfmt.py generates a binary message catalog
                from a catalog in text format.

iobench         Benchmark for the new Python I/O system. (*)

msi             Support for packaging Python as an MSI package on Windows.

parser          Un-parsing tool to generate code from an AST.

pybench         Low-level benchmarking for the Python evaluation loop. (*)

pynche          A Tkinter-based color editor.

scripts         A number of useful single-file programs, e.g. tabnanny.py
                by Tim Peters, which checks for inconsistent mixing of
                tabs and spaces, and 2to3, which converts Python 2 code
                to Python 3 code.

stringbench     A suite of micro-benchmarks for various operations on
                strings (both 8-bit and unicode). (*)

test2to3        A demonstration of how to use 2to3 transparently in setup.py.

unicode         Tools for generating unicodedata and codecs from unicode.org
                and other mapping files (by Fredrik Lundh, Marc-Andre Lemburg
                and Martin von Loewis).

unittestgui     A Tkinter based GUI test runner for unittest, with test
                discovery.


(*) A generic benchmark suite is maintained separately at http://hg.python.org/benchmarks/