Mercurial > cpython-lru_cache-weakref
comparison Python/Python-ast.c @ 39691:c4d8c054616c
Part of SF patch #1513870 (the still relevant part) -- add reduce() to
functools, and adjust docs etc.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sat, 26 Aug 2006 20:49:04 +0000 |
| parents | f87a3e61853d |
| children | d0b83c4630c0 |
comparison
equal
deleted
inserted
replaced
| 39690:0cb9e57ec406 | 39691:c4d8c054616c |
|---|---|
| 3010 if (!m) return; | 3010 if (!m) return; |
| 3011 d = PyModule_GetDict(m); | 3011 d = PyModule_GetDict(m); |
| 3012 if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; | 3012 if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; |
| 3013 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) | 3013 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) |
| 3014 return; | 3014 return; |
| 3015 if (PyModule_AddStringConstant(m, "__version__", "45597") < 0) | 3015 if (PyModule_AddStringConstant(m, "__version__", "51600") < 0) |
| 3016 return; | 3016 return; |
| 3017 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; | 3017 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; |
| 3018 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) | 3018 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) |
| 3019 return; | 3019 return; |
| 3020 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) | 3020 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) |
