This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Eli_B
Recipients Eli_B, docs@python
Date 2018-02-15.16:52:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1518713524.32.0.467229070634.issue32853@psf.upfronthosting.co.za>
In-reply-to
Content
In module struct's docstring, it says:
"...
The optional first format char indicates byte order, size and alignment:\n
  @: native order, size & alignment (default)\n
  =: native order, std. size & alignment\n
  <: little-endian, std. size & alignment\n
  >: big-endian, std. size & alignment\n
  !: same as >\n
..."
The wording sounds like either native or standard alignment is performed, regardless of the optional first format char.

In comparison, the table in https://docs.python.org/3.8/library/struct.html#byte-order-size-and-alignment states that in all modes other than the default, no alignment is performed. This is the actual behavior of the module.
History
Date User Action Args
2018-02-15 16:52:04Eli_Bsetrecipients: + Eli_B, docs@python
2018-02-15 16:52:04Eli_Bsetmessageid: <1518713524.32.0.467229070634.issue32853@psf.upfronthosting.co.za>
2018-02-15 16:52:04Eli_Blinkissue32853 messages
2018-02-15 16:52:04Eli_Bcreate