From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 16 Jan 2026 17:38:08 +0000 (+0100) Subject: [3.14] gh-143674: Document F/D complex format characters in struct module (GH-143675... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6219497fd9841a5263e43545cec5854da49d22d6;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-143674: Document F/D complex format characters in struct module (GH-143675) (#143918) gh-143674: Document F/D complex format characters in struct module (GH-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. (cherry picked from commit 3e932257980be8907698c378c23026e262ba066c) Co-authored-by: Muneeb Ullah Co-authored-by: Sergey B Kirpichev --- diff --git a/Modules/_struct.c b/Modules/_struct.c index 1f6a298c482d..f352d753723d 100644 --- a/Modules/_struct.c +++ b/Modules/_struct.c @@ -2700,6 +2700,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\