mirror of
https://github.com/python/cpython.git
synced 2026-03-22 20:50:53 +00:00
Issue #1789: clarify that the 'size' column in struct docs refers to standard size.
This commit is contained in:
parent
b32248757d
commit
4aa5f6f1f2
1 changed files with 5 additions and 1 deletions
|
|
@ -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 |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue