https://github.com/python/cpython/commit/3e932257980be8907698c378c23026e262ba066c commit: 3e932257980be8907698c378c23026e262ba066c branch: main author: Muneeb Ullah <[email protected]> committer: vstinner <[email protected]> date: 2026-01-16T18:09:56+01:00 summary:
gh-143674: Document F/D complex format characters in struct module (#143675) Add documentation for the F (complex from two floats) and D (complex from two doubles) format characters in the struct module docstring. These format characters were implemented but not documented. Co-authored-by: Sergey B Kirpichev <[email protected]> files: M Modules/_struct.c diff --git a/Modules/_struct.c b/Modules/_struct.c index 34e931790ebb39..c3f8359ac39e4e 100644 --- a/Modules/_struct.c +++ b/Modules/_struct.c @@ -2665,6 +2665,7 @@ these can be preceded by a decimal repeat count:\n\ ?: _Bool (requires C99; if not available, char is used instead)\n\ h:short; H:unsigned short; i:int; I:unsigned int;\n\ l:long; L:unsigned long; f:float; d:double; e:half-float.\n\ + F:float complex; D:double complex.\n\ Special cases (preceding decimal count indicates length):\n\ s:string (array of char); p: pascal string (with count byte).\n\ Special cases (only available in native format):\n\ _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
