[issue26565] [ctypes] Add value attribute to non basic pointers.
Martin Panter
report at bugs.python.org
Thu Jun 9 23:56:35 EDT 2016
Martin Panter added the comment:
Eryk Sun’s as_void suggestion sounds similar to doing:
ctypes.cast(any_pointer, ctypes.c_void_p)
Why do you want the address? Perhaps it is good enough to get it from a void pointer:
ctypes.cast(any_pointer, ctypes.c_void_p).value
Maybe “pointer_value” would be less confusing than “toaddress”.
----------
nosy: +martin.panter
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26565>
_______________________________________
More information about the Python-bugs-list
mailing list