Staging
v0.8.1
https://github.com/python/cpython
Revision 9c048f9f6565d9a83890d0834f5f9b4be3a7cd8b authored by Jeremy Hylton on 13 October 2000, 21:58:13 UTC, committed by Jeremy Hylton on 13 October 2000, 21:58:13 UTC
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
1 parent 5bad5a4
History
Tip revision: 9c048f9f6565d9a83890d0834f5f9b4be3a7cd8b authored by Jeremy Hylton on 13 October 2000, 21:58:13 UTC
Now supports entire Python 2.0 language and still supports Python
Tip revision: 9c048f9
File Mode Size
.cvsignore -rw-r--r-- 17 bytes
Makefile.in -rw-r--r-- 3.2 KB
atof.c -rw-r--r-- 813 bytes
bltinmodule.c -rw-r--r-- 53.0 KB
ceval.c -rw-r--r-- 69.0 KB
codecs.c -rw-r--r-- 10.0 KB
compile.c -rw-r--r-- 83.4 KB
dup2.c -rw-r--r-- 685 bytes
dynload_aix.c -rw-r--r-- 5.3 KB
dynload_beos.c -rw-r--r-- 6.1 KB
dynload_dl.c -rw-r--r-- 537 bytes
dynload_hpux.c -rw-r--r-- 1.3 KB
dynload_mac.c -rw-r--r-- 3.1 KB
dynload_next.c -rw-r--r-- 4.3 KB
dynload_os2.c -rw-r--r-- 958 bytes
dynload_shlib.c -rw-r--r-- 2.0 KB
dynload_stub.c -rw-r--r-- 202 bytes
dynload_win.c -rw-r--r-- 7.3 KB
errors.c -rw-r--r-- 12.4 KB
exceptions.c -rw-r--r-- 27.3 KB
fmod.c -rw-r--r-- 433 bytes
frozen.c -rw-r--r-- 965 bytes
frozenmain.c -rw-r--r-- 1.4 KB
getargs.c -rw-r--r-- 28.8 KB
getcompiler.c -rw-r--r-- 366 bytes
getcopyright.c -rw-r--r-- 418 bytes
getcwd.c -rw-r--r-- 1.3 KB
getmtime.c -rw-r--r-- 499 bytes
getopt.c -rw-r--r-- 2.4 KB
getplatform.c -rw-r--r-- 130 bytes
getversion.c -rw-r--r-- 260 bytes
graminit.c -rw-r--r-- 28.3 KB
hypot.c -rw-r--r-- 280 bytes
import.c -rw-r--r-- 55.4 KB
importdl.c -rw-r--r-- 2.0 KB
importdl.h -rw-r--r-- 931 bytes
marshal.c -rw-r--r-- 15.2 KB
memmove.c -rw-r--r-- 439 bytes
modsupport.c -rw-r--r-- 9.4 KB
mystrtoul.c -rw-r--r-- 3.1 KB
pyfpe.c -rw-r--r-- 621 bytes
pystate.c -rw-r--r-- 4.7 KB
pythonmain.c -rw-r--r-- 5.8 KB
pythonrun.c -rw-r--r-- 27.1 KB
sigcheck.c -rw-r--r-- 529 bytes
strdup.c -rw-r--r-- 256 bytes
strerror.c -rw-r--r-- 446 bytes
strtod.c -rw-r--r-- 5.1 KB
structmember.c -rw-r--r-- 5.0 KB
sysmodule.c -rw-r--r-- 19.9 KB
thread.c -rw-r--r-- 2.3 KB
thread_beos.h -rw-r--r-- 7.5 KB
thread_cthread.h -rw-r--r-- 3.6 KB
thread_foobar.h -rw-r--r-- 2.5 KB
thread_lwp.h -rw-r--r-- 3.8 KB
thread_nt.h -rw-r--r-- 8.9 KB
thread_os2.h -rw-r--r-- 4.1 KB
thread_pth.h -rw-r--r-- 7.1 KB
thread_pthread.h -rw-r--r-- 10.6 KB
thread_sgi.h -rw-r--r-- 11.8 KB
thread_solaris.h -rw-r--r-- 4.4 KB
thread_wince.h -rw-r--r-- 4.0 KB
traceback.c -rw-r--r-- 5.5 KB

back to top