diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-03-21 18:51:14 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-03-21 18:51:14 (GMT) |
commit | 520e8508a005252fbe0742458bc894475bbb195a (patch) | |
tree | d049d10a1b92c3a2a124e15cf7de5fbfe74405b6 /Objects/abstract.c | |
parent | b7f1da5a3c699fe95d7364f29c71f101e65257fa (diff) | |
download | cpython-520e8508a005252fbe0742458bc894475bbb195a.zip cpython-520e8508a005252fbe0742458bc894475bbb195a.tar.gz cpython-520e8508a005252fbe0742458bc894475bbb195a.tar.bz2 |
long() -> int()
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r-- | Objects/abstract.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index e60601b..4737d54 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -1351,7 +1351,7 @@ PyNumber_Long(PyObject *o) PyObject *int_instance; Py_DECREF(trunc_func); /* __trunc__ is specified to return an Integral type, - but long() needs to return a long. */ + but int() needs to return a int. */ int_instance = convert_integral_to_int(truncated, "__trunc__ returned non-Integral (type %.200s)"); return int_instance; @@ -1361,7 +1361,7 @@ PyNumber_Long(PyObject *o) if (PyBytes_Check(o)) /* need to do extra error checking that PyLong_FromString() - * doesn't do. In particular long('9.5') must raise an + * doesn't do. In particular int('9.5') must raise an * exception, not truncate the float. */ return long_from_string(PyBytes_AS_STRING(o), |