summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-01-24 09:38:26 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2008-01-24 09:38:26 (GMT)
commit7b7ce7854c2e36d04adb42beec5f673071cf1fd4 (patch)
tree4f329e6b777309aa8bb79ea8b79d0072fb50766f /Doc/library
parent7070094d7ffd4308e12188b39d0f346473581335 (diff)
downloadcpython-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.rst4
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: