Skip to content Skip to sidebar Skip to footer
Showing posts with the label Python 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

Assignment Into Python 3.x Buffers With Itemsize > 1

I am trying to expose a buffer of image pixel information (32 bit RGBA) through the Python 3.x buff… Read more Assignment Into Python 3.x Buffers With Itemsize > 1

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

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?

Segfault When Trying To Write To A Numpy Array Created Within A C Extension

I have an if clause within a for loop in which I have defined state_out beforehand with: state_out … Read more Segfault When Trying To Write To A Numpy Array Created Within A 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?