[Python-3000-checkins] r55264 - python/branches/p3yk/Python/Python-ast.c python/branches/p3yk/Python/ceval.c
georg.brandl
python-3000-checkins at python.org
Fri May 11 17:50:26 CEST 2007
Author: georg.brandl
Date: Fri May 11 17:50:19 2007
New Revision: 55264
Modified:
python/branches/p3yk/Python/Python-ast.c
python/branches/p3yk/Python/ceval.c
Log:
Check in the inevitable AST version number and format Py_ssize_t with %zd.
Modified: python/branches/p3yk/Python/Python-ast.c
==============================================================================
--- python/branches/p3yk/Python/Python-ast.c (original)
+++ python/branches/p3yk/Python/Python-ast.c Fri May 11 17:50:19 2007
@@ -2,7 +2,7 @@
/*
- __version__ 54835.
+ __version__ 55262.
This module must be committed separately after each AST grammar change;
The __version__ number is set to the revision number of the commit
@@ -3150,7 +3150,7 @@
if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return;
if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0)
return;
- if (PyModule_AddStringConstant(m, "__version__", "54835") < 0)
+ if (PyModule_AddStringConstant(m, "__version__", "55262") < 0)
return;
if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return;
if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0)
Modified: python/branches/p3yk/Python/ceval.c
==============================================================================
--- python/branches/p3yk/Python/ceval.c (original)
+++ python/branches/p3yk/Python/ceval.c Fri May 11 17:50:19 2007
@@ -3149,7 +3149,7 @@
ll = PyList_GET_SIZE(l);
if (ll < argcntafter) {
- PyErr_Format(PyExc_ValueError, "need more than %d values to unpack",
+ PyErr_Format(PyExc_ValueError, "need more than %zd values to unpack",
argcnt + ll);
goto Error;
}
More information about the Python-3000-checkins
mailing list