Bug in ctypes example - structure containing 4 POINTs
![](https://secure.gravatar.com/avatar/2c0b7f50131695ee6673c47acc1372d3.jpg?s=120&d=mm&r=g)
Jan. 13, 2025
3: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)
31
Age (days ago)
31
Last active (days ago)
0 comments
1 participants
participants (1)
-
James Waldby