]> granicus.if.org Git - python/commitdiff
Merged revisions 82379 via svnmerge from
authorMark Dickinson <dickinsm@gmail.com>
Tue, 29 Jun 2010 20:09:50 +0000 (20:09 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Tue, 29 Jun 2010 20:09:50 +0000 (20:09 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82379 | mark.dickinson | 2010-06-29 21:09:12 +0100 (Tue, 29 Jun 2010) | 1 line

  Issue #1789:  clarify that the 'size' column in struct docs refers to standard size.
........

Doc/library/struct.rst

index bc763e0cff94f8a9f86e89b10a638cd920cbb590..f1f019dd99eccf8dee2d30ab556f259b769740ca 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      |