python-var-dump icon indicating copy to clipboard operation
python-var-dump copied to clipboard

does a bad job with ctypes.wintypes.ULARGE_INTEGER

Open divinity76 opened this issue 3 years ago • 3 comments

no matter what the ULARGE_INTEGER actually contains, it will just var_dump as

object(c_ulonglong) (0)

for example

import ctypes
import ctypes.wintypes
from var_dump import var_dump

foo = ctypes.wintypes.ULARGE_INTEGER(123)
var_dump(foo, foo.value)

prints

#0 object(c_ulonglong) (0)
#1 int(123)

interestingly print() gets it right,

print(ctypes.wintypes.ULARGE_INTEGER(123))

gives

c_ulonglong(123)

divinity76 avatar May 11 '22 15:05 divinity76

proposed fix in #16

divinity76 avatar May 11 '22 17:05 divinity76

same problem with ctypes.wintypes.HANDLE not sure if its worthwhile to create a separate issue for ctypes.wintypes.HANDLE ? in any case, #16 also fixes ctypes.wintypes.HANDLE

divinity76 avatar May 12 '22 04:05 divinity76

2 different proposed fixes: #16 and #17 i don't know which of those is better, hopefully someone else does

divinity76 avatar May 12 '22 07:05 divinity76