mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
1.5.2. The compiler generates code for the version of the interpreter
it is run under.
ast.py:
Print and Printnl add dest attr for extended print
new node AugAssign for augmented assignments
new nodes ListComp, ListCompFor, and ListCompIf for list
comprehensions
pyassem.py:
add work around for string-Unicode comparison raising UnicodeError
on comparison of two objects in code object's const table
pycodegen.py:
define VERSION, the Python major version number
get magic number using imp.get_magic() instead of hard coding
implement list comprehensions, extended print, and augmented
assignment; augmented assignment uses Delegator classes (see
doc string)
fix import and tuple unpacking for 1.5.2
transformer.py:
various changes to support new 2.0 grammar and old 1.5 grammar
add debug_tree helper than converts and symbol and token numbers
to their names
|
||
|---|---|---|
| .. | ||
| audiopy | ||
| bgen | ||
| compiler | ||
| faqwiz | ||
| freeze | ||
| i18n | ||
| idle | ||
| modulator | ||
| pynche | ||
| scripts | ||
| unicode | ||
| versioncheck | ||
| webchecker | ||
| world | ||
| README | ||
This directory contains a number of Python programs that are useful
while building or extending Python.
bgen Generate complete extension modules from a
description. Still under development!
compiler A Python source to bytecode compiler written in
Python, including an interface for manipulating
abstract syntax trees. Still under development.
faqwiz FAQ Wizard.
See http://grail.cnri.reston.va.us/cgi-bin/faqw.py
for a live example.
freeze Create a stand-alone executable from a Python program.
modulator Interactively generate boiler plate for an extension
module. Works easiest if you have Tk.
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.