Mercurial > cpython-lru_cache-weakref
comparison Python/Python-ast.c @ 40563:6bd65cb5b952
Commit __version__ change.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 06 Jan 2007 13:29:14 +0000 |
| parents | 54cd47788811 |
| children | 4bab65fcca8e |
comparison
equal
deleted
inserted
replaced
| 40533:b19ed543d695 | 40563:6bd65cb5b952 |
|---|---|
| 3124 if (!m) return; | 3124 if (!m) return; |
| 3125 d = PyModule_GetDict(m); | 3125 d = PyModule_GetDict(m); |
| 3126 if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; | 3126 if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; |
| 3127 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) | 3127 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) |
| 3128 return; | 3128 return; |
| 3129 if (PyModule_AddStringConstant(m, "__version__", "52491") < 0) | 3129 if (PyModule_AddStringConstant(m, "__version__", "53170") < 0) |
| 3130 return; | 3130 return; |
| 3131 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; | 3131 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; |
| 3132 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) | 3132 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) |
| 3133 return; | 3133 return; |
| 3134 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) | 3134 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) |
