[issue27274] [ctypes] Allow from_pointer creation
Memeplex
report at bugs.python.org
Thu Jun 9 11:47:55 EDT 2016
Memeplex added the comment:
> The first argument can be any type accepted by c_void_p.from_param, such as a ctypes pointer/array, str, bytes, or an integer address.
Now I see why you suggested ptr.as_void in 26565. Both issues are very related. Some functions are overloaded in the sense they automatically call c_void_p.from_param on their arguments; other functions aren't. Uniformity would dictate to treat all functions expecting an address the same way. Anyway this would not cover all use cases for ptr.toaddress or ptr.as_void or whatever it gets called.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27274>
_______________________________________
More information about the Python-bugs-list
mailing list