mirror of
https://github.com/python/cpython.git
synced 2025-09-29 03:35:31 +00:00
Fix outdated comment in typeobject.c (GH-5090)
The comment was added in3abca127fe
. Ind78448e912
, it was changed to use PyArg_ParseTuple instead. (cherry picked from commit78e24d4415
)
This commit is contained in:
parent
a70d5ff992
commit
78e43a59ac
1 changed files with 1 additions and 1 deletions
|
@ -2313,7 +2313,7 @@ type_new(PyTypeObject *metatype, PyObject *args, PyObject *kwds)
|
|||
}
|
||||
|
||||
/* SF bug 475327 -- if that didn't trigger, we need 3
|
||||
arguments. but PyArg_ParseTupleAndKeywords below may give
|
||||
arguments. but PyArg_ParseTuple below may give
|
||||
a msg saying type() needs exactly 3. */
|
||||
if (nargs != 3) {
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue