Mercurial > cpython-lru_cache-weakref
comparison Python/Python-ast.c @ 37897:a31202c9485d
Commit regenerated Python-ast.c.
| author | Thomas Wouters <thomas@python.org> |
|---|---|
| date | Fri, 21 Apr 2006 14:02:59 +0000 |
| parents | f731859e9b3b |
| children | f87a3e61853d |
comparison
equal
deleted
inserted
replaced
| 37895:91a0981ec4c2 | 37897:a31202c9485d |
|---|---|
| 3046 if (!m) return; | 3046 if (!m) return; |
| 3047 d = PyModule_GetDict(m); | 3047 d = PyModule_GetDict(m); |
| 3048 if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; | 3048 if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; |
| 3049 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) | 3049 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) |
| 3050 return; | 3050 return; |
| 3051 if (PyModule_AddStringConstant(m, "__version__", "42753") < 0) | 3051 if (PyModule_AddStringConstant(m, "__version__", "45597") < 0) |
| 3052 return; | 3052 return; |
| 3053 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; | 3053 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; |
| 3054 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) | 3054 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) |
| 3055 return; | 3055 return; |
| 3056 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) | 3056 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) |
