[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] C API for igraph Python Extension Module

From: Daniel de Angelis Cordeiro
Subject: Re: [igraph] C API for igraph Python Extension Module
Date: Mon, 21 Jun 2010 11:17:29 +0200

On Fri, Jun 18, 2010 at 13:34, Tamas Nepusz <address@hidden> wrote:
>> I'm using igraph's Python interface (downloaded from the launchpad
>> ppa) and I want to know if igraph's Python interface provides also a C
>> API for other python extensions
> No, unfortunately not. To be honest, I didn't even know that it is
> possible :)

Neither did I. :-)
I saw this in pygsl (the python interface for the GNU Scientific
Library). They provide a neat function:

PyGSL_API_EXTERN gsl_rng *
PyGSL_gsl_rng_from_pyobject(PyObject * object);

that takes as argument the PyObject object an returns the internal GSL
representation of the object.

Something similar in python-igraph (a function that returns the
internal igraph_t of a Python object) would be awesome. :-)

> Please file a wishlist bug report and I'll check how
> complicated it would be at this stage. Or, if you are willing to work on
> it, please let me know, send a patch and I'll happily merge it with the
> dev branch if it works.

I don't know either how to do it either, so for now I will fill the
bug report. :-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]