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

add value to the name...

Open divinity76 opened this issue 3 years ago • 2 comments

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 :)

divinity76 avatar May 11 '22 17:05 divinity76

just saw, this also fixes ctypes.wintypes.HANDLE :) (same problem as with ctypes.wintypes.ULARGE_INTEGER )

divinity76 avatar May 12 '22 04:05 divinity76

#17 is an alternative to this PR (eg either #16 or #17 should be merged, but not both)

divinity76 avatar May 12 '22 07:05 divinity76