Cast to a method pointer in ctypes

Andrew Evans randrange at gmail.com
Mon Jan 31 12:35:30 EST 2011


How can I cast to a method pointer in ctypes. for example this in C

int (*func)();
func = (int (*)()) expl;
(int)(*func)();

How can I do this in ctypes using Python? I couldn't find the info I needed
to be able to do this

*cheers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110131/e9b065e9/attachment.html>


More information about the Python-list mailing list