mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Make clear in the docstring that "std" applies to both size and alignment,
not just to alignment. Spotted by Guido. Bugfix candidate.
This commit is contained in:
parent
819bb2c502
commit
be80085514
1 changed files with 6 additions and 6 deletions
|
@ -9,12 +9,12 @@ Functions to convert between Python values and C structs.\n\
|
||||||
Python strings are used to hold the data representing the C struct\n\
|
Python strings are used to hold the data representing the C struct\n\
|
||||||
and also as format strings to describe the layout of data in the C struct.\n\
|
and also as format strings to describe the layout of data in the C struct.\n\
|
||||||
\n\
|
\n\
|
||||||
The optional first format char indicates byte ordering and alignment:\n\
|
The optional first format char indicates byte order, size and alignment:\n\
|
||||||
@: native w/native alignment(default)\n\
|
@: native order, size & alignment (default)\n\
|
||||||
=: native w/standard alignment\n\
|
=: native order, std. size & alignment\n\
|
||||||
<: little-endian, std. alignment\n\
|
<: little-endian, std. size & alignment\n\
|
||||||
>: big-endian, std. alignment\n\
|
>: big-endian, std. size & alignment\n\
|
||||||
!: network, std (same as >)\n\
|
!: same as >\n\
|
||||||
\n\
|
\n\
|
||||||
The remaining chars indicate types of args and must match exactly;\n\
|
The remaining chars indicate types of args and must match exactly;\n\
|
||||||
these can be preceded by a decimal repeat count:\n\
|
these can be preceded by a decimal repeat count:\n\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue