Mercurial > cpython-lru_cache-weakref
comparison Python/Python-ast.c @ 71375:b23ad0a6cf87
remove ast.__version__ (closes #12273)
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Fri, 15 Jul 2011 21:10:13 -0500 |
| parents | b8c2db47a562 |
| children | 75d56cf3020c |
comparison
equal
deleted
inserted
replaced
| 71364:cd43d57f64db | 71375:b23ad0a6cf87 |
|---|---|
| 1 /* File automatically generated by Parser/asdl_c.py. */ | 1 /* File automatically generated by Parser/asdl_c.py. */ |
| 2 | |
| 3 | |
| 4 /* | |
| 5 __version__ e0e663132363. | |
| 6 | |
| 7 This module must be committed separately after each AST grammar change; | |
| 8 The __version__ number is set to the revision number of the commit | |
| 9 containing the grammar change. | |
| 10 */ | |
| 11 | 2 |
| 12 #include "Python.h" | 3 #include "Python.h" |
| 13 #include "Python-ast.h" | 4 #include "Python-ast.h" |
| 14 | 5 |
| 15 static PyTypeObject AST_type; | 6 static PyTypeObject AST_type; |
| 6748 d = PyModule_GetDict(m); | 6739 d = PyModule_GetDict(m); |
| 6749 if (PyDict_SetItemString(d, "AST", (PyObject*)&AST_type) < 0) return | 6740 if (PyDict_SetItemString(d, "AST", (PyObject*)&AST_type) < 0) return |
| 6750 NULL; | 6741 NULL; |
| 6751 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) | 6742 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) |
| 6752 return NULL; | 6743 return NULL; |
| 6753 if (PyModule_AddStringConstant(m, "__version__", "e0e663132363") < 0) | |
| 6754 return NULL; | |
| 6755 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return | 6744 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return |
| 6756 NULL; | 6745 NULL; |
| 6757 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) | 6746 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) |
| 6758 return NULL; | 6747 return NULL; |
| 6759 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) | 6748 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) |
