Mercurial > cpython-lru_cache-weakref
comparison Python/Python-ast.c @ 43118:88aaa380f091
Customary 2nd submit of this file after it's been changed.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 31 Aug 2007 04:03:25 +0000 |
| parents | 981ecc526703 |
| children | 704e6711e50d |
comparison
equal
deleted
inserted
replaced
| 43117:7ea1367ba275 | 43118:88aaa380f091 |
|---|---|
| 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__ 465. | 5 __version__ 57783. |
| 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 */ |
| 3169 if (!m) return; | 3169 if (!m) return; |
| 3170 d = PyModule_GetDict(m); | 3170 d = PyModule_GetDict(m); |
| 3171 if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; | 3171 if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; |
| 3172 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) | 3172 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) |
| 3173 return; | 3173 return; |
| 3174 if (PyModule_AddStringConstant(m, "__version__", "465") < 0) | 3174 if (PyModule_AddStringConstant(m, "__version__", "57783") < 0) |
| 3175 return; | 3175 return; |
| 3176 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; | 3176 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; |
| 3177 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) | 3177 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) |
| 3178 return; | 3178 return; |
| 3179 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) | 3179 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) |
