Porting the 2-3 heap data-structure library from C to Python

Stefan Behnel stefan_ml at behnel.de
Wed Mar 7 11:18:06 EST 2012


Hrvoje Niksic, 07.03.2012 16:48:
> Alec Taylor writes:
> 
>> The source-code used has been made available:
>> http://www.cosc.canterbury.ac.nz/research/RG/alg/ttheap.h
>> http://www.cosc.canterbury.ac.nz/research/RG/alg/ttheap.c
>>
>> I plan on wrapping it in a class.
> 
> You should get acquainted with the Python/C API

If it proves necessary, yes.


> which is the standard way of extending Python with high-performance
> (and/or system-specific) C code.

Well, it's *one* way. Certainly not the easiest way, neither the most
portable and you'll have a hard time making it the fastest.

Stefan




More information about the Python-list mailing list