Skip to content Skip to sidebar Skip to footer
Showing posts with the label Python C Api

Implementing Nb_inplace_add Results In Returning A Read-only Buffer Object

I'm writing an implementation of the in-place add operation. But, for some reason, I sometimes … Read more Implementing Nb_inplace_add Results In Returning A Read-only Buffer Object

Return List Of New Custom-class Objects In Python C Api

I need to create a new list via the python C API containing new copies of objects of a Quaternion c… Read more Return List Of New Custom-class Objects In Python C Api

How To Create A Custom Python Exception Type In C Extension?

I'm writing a Python module in C. I need to report errors that can't be described by built-… Read more How To Create A Custom Python Exception Type In C Extension?

Are There Any Datetime.tzinfo Implementations In C?

I've been working on a Python library that uses a C extension module to do ISO 8601 parsing. Pa… Read more Are There Any Datetime.tzinfo Implementations In C?

How To Use Setuptools Packages And Ext_modules With The Same Name?

I got the following file structure for my Python C Extension project: . ├── setup.py ├── source   … Read more How To Use Setuptools Packages And Ext_modules With The Same Name?

How To Call A Python Function By Name From The C-api?

From the c-api, I would like to call a python function by name. I would then be calling the functi… Read more How To Call A Python Function By Name From The C-api?

Numpy/capi Error With Import_array() When Compiling Multiple Modules

I am trying to compile a C++ module to use in scipy.weave that is composed of several headers and s… Read more Numpy/capi Error With Import_array() When Compiling Multiple Modules

Unhandled Exception At Multiarray.pyd The 2nd Time The Program Runs

I'm making a .dll plug-in in c++ and embedding python 2.7 in it. Everything worked fine with si… Read more Unhandled Exception At Multiarray.pyd The 2nd Time The Program Runs