diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2008-01-24 09:38:26 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2008-01-24 09:38:26 (GMT) |
commit | 7b7ce7854c2e36d04adb42beec5f673071cf1fd4 (patch) | |
tree | 4f329e6b777309aa8bb79ea8b79d0072fb50766f /Doc/library | |
parent | 7070094d7ffd4308e12188b39d0f346473581335 (diff) | |
download | cpython-7b7ce7854c2e36d04adb42beec5f673071cf1fd4.zip cpython-7b7ce7854c2e36d04adb42beec5f673071cf1fd4.tar.gz cpython-7b7ce7854c2e36d04adb42beec5f673071cf1fd4.tar.bz2 |
Fix issue1789: The tutorial contained a misuse of the struct module.
(also remove an unneeded import struct from test_largefile)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/struct.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst index d4952bb..d0960ed 100644 --- a/Doc/library/struct.rst +++ b/Doc/library/struct.rst @@ -85,7 +85,7 @@ Python values should be obvious given their types: +--------+-------------------------+--------------------+-------+ | ``i`` | :ctype:`int` | integer | | +--------+-------------------------+--------------------+-------+ -| ``I`` | :ctype:`unsigned int` | long | | +| ``I`` | :ctype:`unsigned int` | integer or long | | +--------+-------------------------+--------------------+-------+ | ``l`` | :ctype:`long` | integer | | +--------+-------------------------+--------------------+-------+ @@ -104,7 +104,7 @@ Python values should be obvious given their types: +--------+-------------------------+--------------------+-------+ | ``p`` | :ctype:`char[]` | string | | +--------+-------------------------+--------------------+-------+ -| ``P`` | :ctype:`void \*` | integer | | +| ``P`` | :ctype:`void \*` | long | | +--------+-------------------------+--------------------+-------+ Notes: |