Mercurial > cpython-lru_cache-weakref
comparison Python/Python-ast.c @ 36707:cd847e726837 legacy-trunk
Regenerate.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Tue, 28 Feb 2006 00:32:31 +0000 |
| parents | b6d2f6fd3e11 |
| children | 5c36c222e7ca |
comparison
equal
deleted
inserted
replaced
| 36706:b6b1c44d9110 | 36707:cd847e726837 |
|---|---|
| 2946 if (!m) return; | 2946 if (!m) return; |
| 2947 d = PyModule_GetDict(m); | 2947 d = PyModule_GetDict(m); |
| 2948 if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; | 2948 if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; |
| 2949 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) | 2949 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) |
| 2950 return; | 2950 return; |
| 2951 if (PyModule_AddStringConstant(m, "__version__", "42635") < 0) | |
| 2952 return; | |
| 2951 if(PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; | 2953 if(PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; |
| 2952 if(PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) | 2954 if(PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) |
| 2953 return; | 2955 return; |
| 2954 if(PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) | 2956 if(PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) |
| 2955 < 0) return; | 2957 < 0) return; |
