Mercurial > cpython-lru_cache-weakref
comparison Python/Python-ast.c @ 40824:180d4e899683 legacy-trunk
Modify Parser/asdl_c.py so that the __version__ number for Python/Python-ast.c
is specified at the top of the file. Also add a note that Python/Python-ast.c
needs to be committed separately after a change to the AST grammar to capture
the revision number of the change (which is what __version__ is set to).
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Mon, 12 Feb 2007 03:51:02 +0000 |
| parents | 29d65741f6c8 |
| children | 0376f13a1af9 |
comparison
equal
deleted
inserted
replaced
| 40817:29d65741f6c8 | 40824:180d4e899683 |
|---|---|
| 1 /* File automatically generated by Parser/asdl_c.py */ | 1 /* File automatically generated by Parser/asdl_c.py. */ |
| 2 | |
| 3 | |
| 4 /* | |
| 5 __version__ 53731. | |
| 6 | |
| 7 This module must be committed separately after each AST grammar change; | |
| 8 The __version__ number is set to the revision number of the commit | |
| 9 containing the grammar change. | |
| 10 */ | |
| 2 | 11 |
| 3 #include "Python.h" | 12 #include "Python.h" |
| 4 #include "Python-ast.h" | 13 #include "Python-ast.h" |
| 5 | 14 |
| 6 static PyTypeObject* AST_type; | 15 static PyTypeObject* AST_type; |
