igraph / python-igraph

Python interface for igraph
GNU General Public License v2.0
1.31k stars 249 forks source link

Update from deprecated PyCObject to PyCapsule #763

Closed DavidRConnell closed 8 months ago

DavidRConnell commented 8 months ago

I was trying to use python-igraph's api and got compiler warnings for implicit declaration of PyCObject_Check and PyCObject_AsVoidPtr. The CObject api has been deprecated. It looks like this got updated elsewhere but missed in igraphmodule_api.h. Pretty much just copied from the Providing a C API for an Extension Module example. Changing to my branch fixes the previous errors I was getting with the missing PyCObject_* symbols.

ntamas commented 8 months ago

Thank you!