Bug in ctypes example - structure containing 4 POINTs
Jan. 13, 2025
4:26 a.m.
https://docs.python.org/3/library/ctypes.html In example after the text "Here is an example of a somewhat artificial data type, a structure containing 4 POINTs among other stuff:", the _fields_ line appears to be missing [, ] around list elements
class POINT(Structure): ... _fields_ = ("x", c_int), ("y", c_int)
332
Age (days ago)
332
Last active (days ago)
0 comments
1 participants
participants (1)
-
James Waldby