diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-10-25 07:05:34 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-10-25 07:05:34 (GMT) |
commit | 90bf5f11713bbb3cf484e49a5cd9f0faecd86212 (patch) | |
tree | 5c75191ff211dc01156294e4a88e71dc1aec540b /Doc/library/array.rst | |
parent | 199786bddecbd856779b050b54c099f229deee3e (diff) | |
download | cpython-90bf5f11713bbb3cf484e49a5cd9f0faecd86212.zip cpython-90bf5f11713bbb3cf484e49a5cd9f0faecd86212.tar.gz cpython-90bf5f11713bbb3cf484e49a5cd9f0faecd86212.tar.bz2 |
Remove mention of narrow/wide builds and update array doc, add a test.
Diffstat (limited to 'Doc/library/array.rst')
-rw-r--r-- | Doc/library/array.rst | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Doc/library/array.rst b/Doc/library/array.rst index d8e0df4..3e275a2 100644 --- a/Doc/library/array.rst +++ b/Doc/library/array.rst @@ -21,7 +21,7 @@ defined: +-----------+--------------------+-------------------+-----------------------+-------+ | ``'B'`` | unsigned char | int | 1 | | +-----------+--------------------+-------------------+-----------------------+-------+ -| ``'u'`` | Py_UNICODE | Unicode character | 2 | \(1) | +| ``'u'`` | Py_UCS4 | Unicode character | 4 | | +-----------+--------------------+-------------------+-----------------------+-------+ | ``'h'`` | signed short | int | 2 | | +-----------+--------------------+-------------------+-----------------------+-------+ @@ -35,9 +35,9 @@ defined: +-----------+--------------------+-------------------+-----------------------+-------+ | ``'L'`` | unsigned long | int | 4 | | +-----------+--------------------+-------------------+-----------------------+-------+ -| ``'q'`` | signed long long | int | 8 | \(2) | +| ``'q'`` | signed long long | int | 8 | \(1) | +-----------+--------------------+-------------------+-----------------------+-------+ -| ``'Q'`` | unsigned long long | int | 8 | \(2) | +| ``'Q'`` | unsigned long long | int | 8 | \(1) | +-----------+--------------------+-------------------+-----------------------+-------+ | ``'f'`` | float | float | 4 | | +-----------+--------------------+-------------------+-----------------------+-------+ @@ -47,10 +47,6 @@ defined: Notes: (1) - The ``'u'`` type code corresponds to Python's unicode character. On narrow - Unicode builds this is 2-bytes, on wide builds this is 4-bytes. - -(2) The ``'q'`` and ``'Q'`` type codes are available only if the platform C compiler used to build Python supports C :c:type:`long long`, or, on Windows, :c:type:`__int64`. |