File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1351,7 +1351,7 @@ PyNumber_Long(PyObject *o)
13511351 PyObject * int_instance ;
13521352 Py_DECREF (trunc_func );
13531353 /* __trunc__ is specified to return an Integral type,
1354- but long () needs to return a long . */
1354+ but int () needs to return a int . */
13551355 int_instance = convert_integral_to_int (truncated ,
13561356 "__trunc__ returned non-Integral (type %.200s)" );
13571357 return int_instance ;
@@ -1361,7 +1361,7 @@ PyNumber_Long(PyObject *o)
13611361
13621362 if (PyBytes_Check (o ))
13631363 /* need to do extra error checking that PyLong_FromString()
1364- * doesn't do. In particular long ('9.5') must raise an
1364+ * doesn't do. In particular int ('9.5') must raise an
13651365 * exception, not truncate the float.
13661366 */
13671367 return long_from_string (PyBytes_AS_STRING (o ),
You can’t perform that action at this time.
0 commit comments