[Python-checkins] cpython: long() -> int()

benjamin.peterson python-checkins at python.org
Wed Mar 21 19:52:01 CET 2012


http://hg.python.org/cpython/rev/bd4243dc0741
changeset:   75858:bd4243dc0741
user:        Benjamin Peterson <benjamin at python.org>
date:        Wed Mar 21 14:51:14 2012 -0400
summary:
  long() -> int()

files:
  Objects/abstract.c |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Objects/abstract.c b/Objects/abstract.c
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -1351,7 +1351,7 @@
         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 @@
 
     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),

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list