diff options
author | Georg Brandl <georg@python.org> | 2007-11-29 17:24:34 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-11-29 17:24:34 (GMT) |
commit | ba956aebb96c38f1b8818189ed6ab18d5441313a (patch) | |
tree | 8cd8aba4cf4559f7e8e2086ea9ad05b4be91187f /Doc/library/struct.rst | |
parent | 0db38532b304c89a998e4fc53b3ac8cd7ff23a8a (diff) | |
download | cpython-ba956aebb96c38f1b8818189ed6ab18d5441313a.zip cpython-ba956aebb96c38f1b8818189ed6ab18d5441313a.tar.gz cpython-ba956aebb96c38f1b8818189ed6ab18d5441313a.tar.bz2 |
Remove mentions of "long integer" in the docs.
Credits to HappySmileMan from GHOP.
Diffstat (limited to 'Doc/library/struct.rst')
-rw-r--r-- | Doc/library/struct.rst | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst index b28f9b4..9e527f1 100644 --- a/Doc/library/struct.rst +++ b/Doc/library/struct.rst @@ -81,15 +81,15 @@ Python values should be obvious given their types: +--------+-------------------------+--------------------+-------+ | ``i`` | :ctype:`int` | integer | | +--------+-------------------------+--------------------+-------+ -| ``I`` | :ctype:`unsigned int` | long | | +| ``I`` | :ctype:`unsigned int` | integer | | +--------+-------------------------+--------------------+-------+ | ``l`` | :ctype:`long` | integer | | +--------+-------------------------+--------------------+-------+ -| ``L`` | :ctype:`unsigned long` | long | | +| ``L`` | :ctype:`unsigned long` | integer | | +--------+-------------------------+--------------------+-------+ -| ``q`` | :ctype:`long long` | long | \(2) | +| ``q`` | :ctype:`long long` | integer | \(2) | +--------+-------------------------+--------------------+-------+ -| ``Q`` | :ctype:`unsigned long | long | \(2) | +| ``Q`` | :ctype:`unsigned long | integer | \(2) | | | long` | | | +--------+-------------------------+--------------------+-------+ | ``f`` | :ctype:`float` | float | | @@ -139,16 +139,7 @@ count-1, it is padded with null bytes so that exactly count bytes in all are used. Note that for :func:`unpack`, the ``'p'`` format character consumes count bytes, but that the string returned can never contain more than 255 characters. -For the ``'I'``, ``'L'``, ``'q'`` and ``'Q'`` format characters, the return -value is a Python long integer. -For the ``'P'`` format character, the return value is a Python integer or long -integer, depending on the size needed to hold a pointer when it has been cast to -an integer type. A *NULL* pointer will always be returned as the Python integer -``0``. When packing pointer-sized values, Python integer or long integer objects -may be used. For example, the Alpha and Merced processors use 64-bit pointer -values, meaning a Python long integer will be used to hold the pointer; other -platforms use 32-bit pointers and will use a Python integer. For the ``'t'`` format character, the return value is either :const:`True` or :const:`False`. When packing, the truth value of the argument object is used. |