Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class eH():
- x= c_uint(0)
- print (type(x) == c_uint)
- #print (asdf.dir())
- print (type(eH.x) == c_uint)
- print (eH.x)
- print (type(eH.x))
- print (type(eH.x) == c_ulong)
- print (c_uint == c_ulong)
- print (c_int == c_long)
- #print (c_ushort == c_uint)
- print ("\nEnd of eH prints\n#####")
- class eHardware(Structure):
- _fields_= [("xyz", c_uint)]
- a= eHardware()
- a.xyz= eH.x
- print (a.xyz)
- print (a.xyz == eH.x)
- print (type(a.xyz))
- print (type(c_uint(a.xyz)))
- ## Below is the terminal output
- True
- True
- c_ulong(0)
- <class 'ctypes.c_ulong'>
- True
- True
- True
- End of eH prints
- #####
- 0
- False
- <class 'int'>
- <class 'ctypes.c_ulong'>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement