[Python-checkins] python/dist/src/Python compile.txt, 1.1.2.14,
1.1.2.15
bcannon at users.sourceforge.net
bcannon at users.sourceforge.net
Tue Apr 19 07:42:18 CEST 2005
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9424/Python
Modified Files:
Tag: ast-branch
compile.txt
Log Message:
Add a note to remind people to clear out old .py(c|o) files if a change is made
that will modify how bytecode was outputted previously.
Index: compile.txt
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/compile.txt,v
retrieving revision 1.1.2.14
retrieving revision 1.1.2.15
diff -u -d -r1.1.2.14 -r1.1.2.15
--- compile.txt 13 Apr 2005 19:44:40 -0000 1.1.2.14
+++ compile.txt 19 Apr 2005 05:42:00 -0000 1.1.2.15
@@ -176,6 +176,10 @@
FunctionDef() constructor function sets 'kind' to FunctionDef_kind and
initializes the 'name', 'args', 'body', and 'attributes' fields.
+*** NOTE: if you make a change here that can affect the output of bytecode that
+is already in existence, make sure to delete your old .py(c|o) files! Running
+``find . -name '*.py[co]' -exec rm -f {} ';'`` should do the trick.
+
Parse Tree to AST
-----------------
@@ -379,6 +383,10 @@
PyCodeObject * assemble(struct compiler *, int);
+*** NOTE: if you make a change here that can affect the output of bytecode that
+is already in existence, make sure to delete your old .py(c|o) files! Running
+``find . -name '*.py[co]' -exec rm -f {} ';'`` should do the trick.
+
Code Objects
------------
@@ -445,9 +453,7 @@
ToDo
----
-+ Grammar support (Parser/Python.asdl, Parser/asdl_c.py)
- - empty base class list (``class Class(): pass``)
- Stdlib support
++ Stdlib support
- AST->Python access?
- rewrite compiler package to mirror AST structure?
+ Documentation
More information about the Python-checkins
mailing list