comparison Python/Python-ast.c @ 40819:5ef70c49d85a

Checkin the regenerated Python-ast.c and fix test_optparse.
author Georg Brandl <georg@python.org>
date Sun, 11 Feb 2007 23:06:17 +0000
parents e9a6234b26af
children 32c4897b5d46
comparison
equal deleted inserted replaced
40818:a84460e53160 40819:5ef70c49d85a
3078 if (!m) return; 3078 if (!m) return;
3079 d = PyModule_GetDict(m); 3079 d = PyModule_GetDict(m);
3080 if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; 3080 if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return;
3081 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) 3081 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0)
3082 return; 3082 return;
3083 if (PyModule_AddStringConstant(m, "__version__", "53349") < 0) 3083 if (PyModule_AddStringConstant(m, "__version__", "53704") < 0)
3084 return; 3084 return;
3085 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; 3085 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return;
3086 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) 3086 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0)
3087 return; 3087 return;
3088 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) 3088 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type)