cpython/Tools
Jeremy Hylton 566d934745 compiler.transformer: correct lineno attribute when possible
SF patch #1015989

The basic idea of this patch is to compute lineno attributes for all AST nodes.  The actual
implementation lead to a lot of restructing and code cleanup.

The generated AST nodes now have an optional lineno argument to constructor.  Remove the
top-level asList(), since it didn't seem to serve any purpose.  Add an __iter__ to ast nodes.
Use isinstance() instead of explicit type tests.

Change transformer to use the new lineno attribute, which replaces three lines of code with one.
Use universal newlines so that we can get rid of special-case code for line endings.  Use
lookup_node() in a few more frequently called, but simple com_xxx methods().  Change string
exception to class exception.
2004-09-07 15:28:01 +00:00
..
audiopy Apply diff2.txt from SF patch http://www.python.org/sf/572113 2002-09-11 20:36:02 +00:00
bgen Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
compiler compiler.transformer: correct lineno attribute when possible 2004-09-07 15:28:01 +00:00
faqwiz Fix 2004-08-07 21:13:46 +00:00
framer Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
freeze Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
i18n - pygettext.py: Generate POT-Creation-Date header in ISO format. 2004-08-16 12:10:12 +00:00
modulator Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
msi Add test_difflib_expect.html. 2004-09-06 06:31:12 +00:00
pynche Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
scripts Patch #914575: difflib side by side diff support, diff.py s/b/s HTML option. 2004-08-29 16:34:40 +00:00
unicode SF #989185: Drop unicode.iswide() and unicode.width() and add 2004-08-04 07:38:35 +00:00
versioncheck Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
webchecker Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
world Added the "weird" ccTLDs ac, gg, im, and je. These are not recognized 2002-07-15 19:53:28 +00:00
README Get rid of old IDLE. Lib/idlelib rules! 2003-06-14 00:08:37 +00:00

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

audiopy		Audiopy is a program to control the Solaris audio
		device, allowing you to choose both the input and
		output devices, and to set the output volume, that can
		be run either as a command-line script, or as a
		Tkinter application.

bgen		Generate complete extension modules from a
		description.  Still under development!

compiler	Tools used to maintain the compiler package in the
		standard library.

faqwiz		FAQ Wizard.
		See http://www.python.org/cgi-bin/faqw.py
		for a live example.

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

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.

modulator	Interactively generate boiler plate for an extension
		module.	 Works easiest if you have Tk.

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.

unicode		Tools used to generate unicode database files for
		Python 2.0 (by Fredrik Lundh).

versioncheck	A tool to automate checking whether you have the latest
		version of a package (by Jack Jansen).

webchecker	A link checker for web sites.

world		Script to take a list of Internet addresses and print
		out where in the world those addresses originate from,
		based on the top-level domain country code found in
		the address.