Issue #8848: U / U# formats of Py_BuildValue() are just alias to s / s#

This commit is contained in:
Victor Stinner 2010-06-07 19:57:46 +00:00
parent fa68a6188a
commit 7eeb5b5e50
7 changed files with 9 additions and 43 deletions

View file

@ -527,7 +527,7 @@ static PyTypeObject* make_type(char *type, PyTypeObject* base, char**fields, int
}
PyTuple_SET_ITEM(fnames, i, field);
}
result = PyObject_CallFunction((PyObject*)&PyType_Type, "U(O){sOss}",
result = PyObject_CallFunction((PyObject*)&PyType_Type, "s(O){sOss}",
type, base, "_fields", fnames, "__module__", "_ast");
Py_DECREF(fnames);
return (PyTypeObject*)result;