Mercurial > cpython-lru_cache-weakref
comparison Python/Python-ast.c @ 41722:d3cd2920beb6
Obsubmit.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 15 May 2007 20:34:04 +0000 |
| parents | 9ad84070b22d |
| children | 24b60622b944 |
comparison
equal
deleted
inserted
replaced
| 41718:6ca3d5f3d1be | 41722:d3cd2920beb6 |
|---|---|
| 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__ 55270. | 5 __version__ 55343. |
| 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 */ |
| 3111 if (!m) return; | 3111 if (!m) return; |
| 3112 d = PyModule_GetDict(m); | 3112 d = PyModule_GetDict(m); |
| 3113 if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; | 3113 if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; |
| 3114 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) | 3114 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) |
| 3115 return; | 3115 return; |
| 3116 if (PyModule_AddStringConstant(m, "__version__", "55270") < 0) | 3116 if (PyModule_AddStringConstant(m, "__version__", "55343") < 0) |
| 3117 return; | 3117 return; |
| 3118 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; | 3118 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; |
| 3119 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) | 3119 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) |
| 3120 return; | 3120 return; |
| 3121 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) | 3121 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) |
