Staging
v0.5.1
https://github.com/python/cpython
Revision 5477f529d6f3b25e51ac6b321a6fe7b28fafe1f4 authored by Jeremy Hylton on 29 August 2001, 18:08:02 UTC, committed by Jeremy Hylton on 29 August 2001, 18:08:02 UTC
Add support for floor division (// and //=)

The implementation of getChildren() and getChildNodes() is intended to
be faster, because it avoids calling flatten() on every return value.
But it's not clear that it is a lot faster, because constructing a
tuple with just the right values ends up being slow.  (Too many
attribute lookups probably.)

The ast.txt file is much more complicated, with funny characters at
the ends of names (*, &, !) to indicate the types of each child node.

The astgen script is also much more complex, making me wonder if it's
still useful.
1 parent 96d68d5
History
Tip revision: 5477f529d6f3b25e51ac6b321a6fe7b28fafe1f4 authored by Jeremy Hylton on 29 August 2001, 18:08:02 UTC
Revise implementations of getChildren() and getChildNodes().
Tip revision: 5477f52
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.cvsignore -rw-r--r-- 109 bytes
.hgtags -rw-r--r-- 2.1 KB
LICENSE -rw-r--r-- 12.0 KB
Makefile.pre.in -rw-r--r-- 25.4 KB
PLAN.txt -rw-r--r-- 18.2 KB
README -rw-r--r-- 38.1 KB
acconfig.h -rw-r--r-- 6.8 KB
configure -rwxr-xr-x 197.9 KB
configure.in -rw-r--r-- 47.1 KB
install-sh -rwxr-xr-x 5.5 KB
pyconfig.h.in -rw-r--r-- 18.3 KB
setup.py -rw-r--r-- 29.6 KB

README

back to top