summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-01-17 10:21:23 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-01-17 10:21:23 (GMT)
commitbf5c6a97f80acd4eb785250de8053efad51732ee (patch)
treeef345debda3189641642b7cadc173931898ad688 /Doc/c-api
parent8055afd0197862a3358fb219f5bb60233288fe02 (diff)
downloadcpython-bf5c6a97f80acd4eb785250de8053efad51732ee.zip
cpython-bf5c6a97f80acd4eb785250de8053efad51732ee.tar.gz
cpython-bf5c6a97f80acd4eb785250de8053efad51732ee.tar.bz2
Fix a few more references to long integers in the docs.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/arg.rst8
-rw-r--r--Doc/c-api/intro.rst2
-rw-r--r--Doc/c-api/typeobj.rst4
3 files changed, 7 insertions, 7 deletions
diff --git a/Doc/c-api/arg.rst b/Doc/c-api/arg.rst
index 96068d9..dfedf97 100644
--- a/Doc/c-api/arg.rst
+++ b/Doc/c-api/arg.rst
@@ -489,11 +489,11 @@ and the following format units are left untouched.
``H`` (integer) [unsigned short int]
Convert a C :ctype:`unsigned short int` to a Python integer object.
- ``I`` (integer/long) [unsigned int]
- Convert a C :ctype:`unsigned int` to a Python long integer object.
+ ``I`` (integer) [unsigned int]
+ Convert a C :ctype:`unsigned int` to a Python integer object.
- ``k`` (integer/long) [unsigned long]
- Convert a C :ctype:`unsigned long` to a Python long integer object.
+ ``k`` (integer) [unsigned long]
+ Convert a C :ctype:`unsigned long` to a Python integer object.
``L`` (long) [PY_LONG_LONG]
Convert a C :ctype:`long long` to a Python integer object. Only available
diff --git a/Doc/c-api/intro.rst b/Doc/c-api/intro.rst
index d165f16..33e6060 100644
--- a/Doc/c-api/intro.rst
+++ b/Doc/c-api/intro.rst
@@ -607,7 +607,7 @@ extra checks are performed:
* Sanity checks of the input arguments are added to frame creation.
-* The storage for long ints is initialized with a known invalid pattern to catch
+* The storage for ints is initialized with a known invalid pattern to catch
reference to uninitialized digits.
* Low-level tracing and extra exception checking are added to the runtime
diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst
index a7ba660..6d98d6b 100644
--- a/Doc/c-api/typeobj.rst
+++ b/Doc/c-api/typeobj.rst
@@ -135,7 +135,7 @@ type objects) *must* have the :attr:`ob_size` field.
:attr:`ob_size` field, and the instance size is :attr:`tp_basicsize` plus N
times :attr:`tp_itemsize`, where N is the "length" of the object. The value of
N is typically stored in the instance's :attr:`ob_size` field. There are
- exceptions: for example, long ints use a negative :attr:`ob_size` to indicate a
+ exceptions: for example, ints use a negative :attr:`ob_size` to indicate a
negative number, and N is ``abs(ob_size)`` there. Also, the presence of an
:attr:`ob_size` field in the instance layout doesn't mean that the instance
structure is variable-length (for example, the structure for the list type has
@@ -812,7 +812,7 @@ type objects) *must* have the :attr:`ob_size` field.
where :attr:`tp_basicsize`, :attr:`tp_itemsize` and :attr:`tp_dictoffset` are
taken from the type object, and :attr:`ob_size` is taken from the instance. The
- absolute value is taken because long ints use the sign of :attr:`ob_size` to
+ absolute value is taken because ints use the sign of :attr:`ob_size` to
store the sign of the number. (There's never a need to do this calculation
yourself; it is done for you by :cfunc:`_PyObject_GetDictPtr`.)