Mercurial > cpython-lru_cache-weakref
comparison Python/Python-ast.c @ 39694:da3a9f402886
Fix set literals not being visited in symtable creation.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Mon, 28 Aug 2006 16:38:22 +0000 |
| parents | d0b83c4630c0 |
| children | c94f37054f19 |
comparison
equal
deleted
inserted
replaced
| 39693:d0b83c4630c0 | 39694:da3a9f402886 |
|---|---|
| 3041 if (!m) return; | 3041 if (!m) return; |
| 3042 d = PyModule_GetDict(m); | 3042 d = PyModule_GetDict(m); |
| 3043 if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; | 3043 if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; |
| 3044 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) | 3044 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) |
| 3045 return; | 3045 return; |
| 3046 if (PyModule_AddStringConstant(m, "__version__", "51600") < 0) | 3046 if (PyModule_AddStringConstant(m, "__version__", "51631") < 0) |
| 3047 return; | 3047 return; |
| 3048 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; | 3048 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; |
| 3049 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) | 3049 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) |
| 3050 return; | 3050 return; |
| 3051 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) | 3051 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) |
