python-var-dump
python-var-dump copied to clipboard
add value to the name...
lots of things possibly wrong with this
- i don't know if this works on python2.7
- i don't know if this is a good fix
- i don't know what this might break
- i did not run it through any testsuite (does a testsuite exist? if it does, i am unaware)
however, previously this
import ctypes
import ctypes.wintypes
from var_dump import var_dump
foo = ctypes.wintypes.ULARGE_INTEGER(123)
print(foo)
var_dump(foo)
would produce
c_ulonglong(123)
#0 object(c_ulonglong) (0)
and print() actually did a better job than var_dump() here, but now it produce:
c_ulonglong(123)
#0 object(c_ulonglong(123)) (0)
doing at least as good a job as print :)
just saw, this also fixes ctypes.wintypes.HANDLE :) (same problem as with ctypes.wintypes.ULARGE_INTEGER )
#17 is an alternative to this PR (eg either #16 or #17 should be merged, but not both)