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 <rep...@bugs.python.org> <http://bugs.python.org/issue26565> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com