Porting the 2-3 heap data-structure library from C to Python
Hrvoje Niksic
hniksic at xemacs.org
Wed Mar 7 10:48:18 EST 2012
Alec Taylor <alec.taylor6 at gmail.com> 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, which is the standard
way of extending Python with high-performance (and/or system-specific) C
code. See "Extending and Embedding" and "Python/C API" sections at
http://docs.python.org/.
There is also a mailing list for help with the C API, see
http://mail.python.org/mailman/listinfo/capi-sig for details.
More information about the Python-list
mailing list