]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #1789: clarify that the 'size' column in struct docs refers to standard size.
authorMark Dickinson <dickinsm@gmail.com>
Tue, 29 Jun 2010 20:09:12 +0000 (20:09 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Tue, 29 Jun 2010 20:09:12 +0000 (20:09 +0000)
Doc/library/struct.rst

index f76e4a13090eb0c44706b660b906e00f36ae1bc1..b5fd43278f670e1fbb2d9525fedc3c9450d7d280 100644 (file)
@@ -156,7 +156,11 @@ Format Characters
 ^^^^^^^^^^^^^^^^^
 
 Format characters have the following meaning; the conversion between C and
-Python values should be obvious given their types:
+Python values should be obvious given their types.  The 'Standard size' column
+refers to the size of the packed value in bytes when using standard size; that
+is, when the format string starts with one of ``'<'``, ``'>'``, ``'!'`` or
+``'='``.  When using native size, the size of the packed value is
+platform-dependent.
 
 +--------+-------------------------+--------------------+----------------+------------+
 | Format | C Type                  | Python type        | Standard size  | Notes      |