int(c_long(1))
doesn't work.
>>> ctypes.c_long(1).value 1
Use the 'value' attribute of c_long object.
c_long(1).value
or
i = c_long(1) print i.value
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With