Mercurial > cpython-lru_cache-weakref
comparison Python/Python-ast.c @ 54744:247f8d268d58 legacy-trunk
update ast version
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sat, 13 Jun 2009 20:30:48 +0000 |
| parents | 40c8c35492f1 |
| children | 20b7deb53d4e |
comparison
equal
deleted
inserted
replaced
| 54743:40c8c35492f1 | 54744:247f8d268d58 |
|---|---|
| 1 /* File automatically generated by Parser/asdl_c.py. */ | 1 /* File automatically generated by Parser/asdl_c.py. */ |
| 2 | 2 |
| 3 | 3 |
| 4 /* | 4 /* |
| 5 __version__ 62047. | 5 __version__ 73421. |
| 6 | 6 |
| 7 This module must be committed separately after each AST grammar change; | 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 | 8 The __version__ number is set to the revision number of the commit |
| 9 containing the grammar change. | 9 containing the grammar change. |
| 10 */ | 10 */ |
| 5942 if (!m) return; | 5942 if (!m) return; |
| 5943 d = PyModule_GetDict(m); | 5943 d = PyModule_GetDict(m); |
| 5944 if (PyDict_SetItemString(d, "AST", (PyObject*)&AST_type) < 0) return; | 5944 if (PyDict_SetItemString(d, "AST", (PyObject*)&AST_type) < 0) return; |
| 5945 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) | 5945 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) |
| 5946 return; | 5946 return; |
| 5947 if (PyModule_AddStringConstant(m, "__version__", "62047") < 0) | 5947 if (PyModule_AddStringConstant(m, "__version__", "73421") < 0) |
| 5948 return; | 5948 return; |
| 5949 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; | 5949 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; |
| 5950 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) | 5950 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) |
| 5951 return; | 5951 return; |
| 5952 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) | 5952 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) |
