cpython/Tools
Serhiy Storchaka 768c16ce02 Issue #18960: Fix bugs with Python source code encoding in the second line.
* The first line of Python script could be executed twice when the source
encoding (not equal to 'utf-8') was specified on the second line.

* Now the source encoding declaration on the second line isn't effective if
the first line contains anything except a comment.

* As a consequence, 'python -x' works now again with files with the source
encoding declarations specified on the second file, and can be used again
to make Python batch files on Windows.

* The tokenize module now ignore the source encoding declaration on the second
line if the first line contains anything except a comment.

* IDLE now ignores the source encoding declaration on the second line if the
first line contains anything except a comment.

* 2to3 and the findnocoding.py script now ignore the source encoding
declaration on the second line if the first line contains anything except
a comment.
2014-01-09 18:36:09 +02:00
..
buildbot Issue #19788: kill_python(_d).exe is now run as a PreBuildEvent on the 2013-11-26 16:32:59 -06:00
ccbench Some cleanup in the Tools directory. 2012-07-07 17:03:54 +02:00
demo Issue #18448: Fix a typo in Tools/demo/eiffel.py. 2013-07-16 22:12:03 +03:00
freeze #18803: fix more typos. Patch by Févry Thibault. 2013-08-26 01:32:56 +03:00
gdb Undo (hopefully) buildbot failures 2013-11-23 18:20:42 +01:00
hg Issue #19106: Touch generated files to be 1s newer than their youngest source. 2013-09-30 16:09:44 +02:00
i18n Issue #20027: Fixed locale aliases for devanagari locales. 2013-12-26 21:20:59 +02:00
importbench Move importlib.test.benchmark to Tools/importbench to make it more 2012-07-20 14:54:53 -04:00
iobench Some cleanup in the Tools directory. 2012-07-07 17:03:54 +02:00
msi #18803: fix more typos. Patch by Févry Thibault. 2013-08-26 01:32:56 +03:00
parser Some cleanup in the Tools directory. 2012-07-07 17:03:54 +02:00
pybench #18803: fix more typos. Patch by Févry Thibault. 2013-08-26 01:32:56 +03:00
pynche #18803: fix more typos. Patch by Févry Thibault. 2013-08-26 01:32:56 +03:00
scripts Issue #18960: Fix bugs with Python source code encoding in the second line. 2014-01-09 18:36:09 +02:00
ssl Add a docstring at the top of Tools/ssl/make_ssl_data.py 2012-06-22 22:07:01 +02:00
stringbench #18803: fix more typos. Patch by Févry Thibault. 2013-08-26 01:32:56 +03:00
test2to3 More cleanup: Move some demos into a dedicated Tools/demo dir, move 2to3 demo to Tools, and remove all the other Demo content. 2010-12-30 21:33:07 +00:00
unicode #18803: fix more typos. Patch by Févry Thibault. 2013-08-26 01:32:56 +03:00
unittestgui remove __version__s dependent on subversion keyword expansion (closes #12221) 2011-05-31 20:52:17 -05:00
README Update description of benchmarks and mention the benchmarks repo 2012-04-09 17:06:44 +02:00

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/