[Python-checkins] python/dist/src/Python compile.txt, 18.104.22.168, 22.214.171.124
bcannon at users.sourceforge.net
Mon Jul 11 05:20:42 CEST 2005
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24085/Python
Flesh out file list to include things that were broken out of Python/compile.c
RCS file: /cvsroot/python/python/dist/src/Python/Attic/compile.txt,v
retrieving revision 126.96.36.199
retrieving revision 188.8.131.52
diff -u -d -r184.108.40.206 -r220.127.116.11
--- compile.txt 19 Apr 2005 05:42:00 -0000 18.104.22.168
+++ compile.txt 11 Jul 2005 03:20:39 -0000 22.214.171.124
@@ -271,13 +271,12 @@
is to convert the AST to Python bytecode without having jump targets
resolved to specific offsets (this is calculated when the CFG goes to
final bytecode). Essentially, this transforms the AST into Python
-bytecode, but with control flow represented by the edges of the CFG.
+bytecode with control flow represented by the edges of the CFG.
Conversion is done in two passes. The first creates the namespace
(variables can be classified as local, free/cell for closures, or
-global) creates CFG with the namespace info. With that done the second
-pass is done which essentially flattens the CFG into a list and
-calculates jump offsets for final output of bytecode.
+global). With that done, the second pass essentially flattens the CFG
+into a list and calculates jump offsets for final output of bytecode.
The conversion process is initiated by a call to the function in
@@ -436,6 +435,10 @@
New version of compile.c that handles the emitting of bytecode.
+ - symtable.c
+ Generates symbol table from AST.
@@ -449,9 +452,27 @@
Declares PyAST_FromNode() external (from ../Python/ast.c).
+ - code.h
+ Header file for ../Objects/codeobject.c; contains definition of
+ - symtable.h
+ Header for ../Python/symtable.c . struct symtable and
+ PySTEntryObject are defined here.
+ - codeobject.c
+ Contains PyCodeObject-related code (originally in
+*** NOTE: all bugs and patches should be filed on SF under the group
+ "AST" for easy searching. It also does not hurt to put
+ "[AST]" at the beginning of the subject line of the tracker
+ Stdlib support
- AST->Python access?
@@ -459,7 +480,8 @@
- flesh out this doc
* byte stream output
- * explanation of how symbol table pass works
+ * explanation of how the symbol table pass works
+ * code object (PyCodeObject)
- make sure entire test suite passes
- fix memory leaks
More information about the Python-checkins