]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-99146 struct module documentation should have more predictable examples...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 22 Nov 2022 18:16:59 +0000 (10:16 -0800)
committerGitHub <noreply@github.com>
Tue, 22 Nov 2022 18:16:59 +0000 (18:16 +0000)
commit420b7e8f43fe0527a8e68fca57227e35733d0b2b
treeef0dc609ef5394c204f7678fbe70bdbd86a5dc1d
parent9a7899b279b9eca2918925157e4a0b572579b081
[3.11] gh-99146 struct module documentation should have more predictable examples/warnings (GH-99141) (GH-99702)

gh-99146 struct module documentation should have more predictable examples/warnings (GH-99141)

* nail down a couple examples to have more predictable output

* update a number of things, but this is really just a stash...

* added an applications section to describe typical uses for native and machine-independent formats

* make sure all format strings use a format prefix character

* responding to comments from @gpshead. Not likely finished yet.

* This got more involved than I expected...

* respond to several PR comments
* a lot of wordsmithing
* try and be more consistent in use of ``x`` vs ``'x'``
* expand examples a bit
* update the "see also" to be more up-to-date
* original examples relied on import * so present all examples as if

* reformat based on @gpshead comment (missed before)

* responding to comments

* missed this

* one more suggested edit

* wordsmithing
(cherry picked from commit 22d91c16bb03c3d87f53b5fee10325b876262a78)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Doc/library/struct.rst