[Tutor] Help with returning a list object from a C extension.

Alan Gauld alan.gauld at btinternet.com
Sat Nov 28 13:17:41 EST 2015


On 28/11/15 15:59, Laura Creighton wrote:

>> effort than ctypes to call a library function? I can't see any advantage,
>> so what am I missing?
> 
> Ctypes is slow.  

Aha. Performance is always the invisible feature.
I only ever use ctypes to access OS features that
don't have a Python equivalent function (and that's
rare). Performance has never been an issue so ctypes
has been just grand.

Cython is a whole different beastie though,
it's way cool! :-)


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list