summaryrefslogtreecommitdiffstats
path: root/Include/longobject.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-27 17:17:03 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-27 17:17:03 (GMT)
commit46e1ce214b5711e8dae63a1b5a0a7aafb371baf0 (patch)
tree0230554f5bd4df8804946f5bb0634cefdbbbd2ae /Include/longobject.h
parent14e461d5b92000ec4e89182fa25ab0d5b5b31234 (diff)
parent9594942716a8f9c557b85d31751753d89cd7cebf (diff)
downloadcpython-46e1ce214b5711e8dae63a1b5a0a7aafb371baf0.zip
cpython-46e1ce214b5711e8dae63a1b5a0a7aafb371baf0.tar.gz
cpython-46e1ce214b5711e8dae63a1b5a0a7aafb371baf0.tar.bz2
Issue #18783: Removed existing mentions of Python long type in docstrings,
error messages and comments.
Diffstat (limited to 'Include/longobject.h')
-rw-r--r--Include/longobject.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Include/longobject.h b/Include/longobject.h
index 24cf401..e62d954 100644
--- a/Include/longobject.h
+++ b/Include/longobject.h
@@ -126,7 +126,7 @@ PyAPI_FUNC(size_t) _PyLong_NumBits(PyObject *v);
PyAPI_FUNC(PyObject *) _PyLong_DivmodNear(PyObject *, PyObject *);
/* _PyLong_FromByteArray: View the n unsigned bytes as a binary integer in
- base 256, and return a Python long with the same numeric value.
+ base 256, and return a Python int with the same numeric value.
If n is 0, the integer is 0. Else:
If little_endian is 1/true, bytes[n-1] is the MSB and bytes[0] the LSB;
else (little_endian is 0/false) bytes[0] is the MSB and bytes[n-1] the
@@ -136,7 +136,7 @@ PyAPI_FUNC(PyObject *) _PyLong_DivmodNear(PyObject *, PyObject *);
non-negative if bit 0x80 of the MSB is clear, negative if set.
Error returns:
+ Return NULL with the appropriate exception set if there's not
- enough memory to create the Python long.
+ enough memory to create the Python int.
*/
PyAPI_FUNC(PyObject *) _PyLong_FromByteArray(
const unsigned char* bytes, size_t n,
@@ -186,7 +186,7 @@ PyAPI_FUNC(int) _PyLong_FormatAdvancedWriter(
Py_ssize_t end);
#endif /* Py_LIMITED_API */
-/* These aren't really part of the long object, but they're handy. The
+/* These aren't really part of the int object, but they're handy. The
functions are in Python/mystrtoul.c.
*/
PyAPI_FUNC(unsigned long) PyOS_strtoul(char *, char **, int);