commit | a7b0976c3e183397a648598d96a7e1fa965cbd90 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sat Oct 15 13:43:21 2011 -0400 |
committer | Benjamin Peterson <benjamin@python.org> | Sat Oct 15 13:43:21 2011 -0400 |
tree | 893cfaada76ad21f2d3f9798cf98c60e5df32e84 | |
parent | 5baef6d23b766121d92e8f562557ff9c3f3ef2db [diff] [blame] |
PyEval_CallObject requires a tuple of args (closes #13186)
diff --git a/Objects/classobject.c b/Objects/classobject.c index 0832531..161906a 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c
@@ -1221,7 +1221,7 @@ if (func == NULL) return -1; if (item == NULL) - arg = PyInt_FromSsize_t(i); + arg = Py_BuildValue("(n)", i); else arg = Py_BuildValue("(nO)", i, item); if (arg == NULL) {