You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The post on Python modules in C is one of the best introductory post which I have ever seen on that topic. It will be great if it could be updated to work with Python3. To make it work, we need to do the following changes:
Use PyInit__chi2 instead of init_chi2, update the function to return NULL when the module does not get initialized and PyModule_Create instead of Py_InitModule3. The updated version:
The post on Python modules in C is one of the best introductory post which I have ever seen on that topic. It will be great if it could be updated to work with Python3. To make it work, we need to do the following changes:
PyModuleDef
to define the module in _chi2.cPyInit__chi2
instead ofinit_chi2
, update the function to return NULL when the module does not get initialized andPyModule_Create
instead ofPy_InitModule3
. The updated version:Thank you for the wonderful post.
The text was updated successfully, but these errors were encountered: