Skip to content

Commit 3e93225

Browse files
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 <skirpichev@gmail.com>
1 parent 21ed1e2 commit 3e93225

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/_struct.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2665,6 +2665,7 @@ these can be preceded by a decimal repeat count:\n\
26652665
?: _Bool (requires C99; if not available, char is used instead)\n\
26662666
h:short; H:unsigned short; i:int; I:unsigned int;\n\
26672667
l:long; L:unsigned long; f:float; d:double; e:half-float.\n\
2668+
F:float complex; D:double complex.\n\
26682669
Special cases (preceding decimal count indicates length):\n\
26692670
s:string (array of char); p: pascal string (with count byte).\n\
26702671
Special cases (only available in native format):\n\

0 commit comments

Comments
 (0)