]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-143674: Document F/D complex format characters in struct module (#143675)
authorMuneeb Ullah <moneebullah25@gmail.com>
Fri, 16 Jan 2026 17:09:56 +0000 (22:09 +0500)
committerGitHub <noreply@github.com>
Fri, 16 Jan 2026 17:09:56 +0000 (18:09 +0100)
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 <skirpichev@gmail.com>
Modules/_struct.c

index 34e931790ebb39809832b1c933be6db7d35a176d..c3f8359ac39e4e91971d0d1a2f78a775412160fa 100644 (file)
@@ -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\