Skip to content Skip to sidebar Skip to footer
Showing posts with the label Pointers

Convert C Array Of Pointers To Python Array Of Structures

I am writing a Python app that makes use of PulseAudio API. The implementation is heavily using cal… Read more Convert C Array Of Pointers To Python Array Of Structures

Python Ctypes Passing In Pointer And Getting Struct Back

This is a simple example of something I'm trying to get working before tackling an actual usefu… Read more Python Ctypes Passing In Pointer And Getting Struct Back

Python Names And Variables

I know this was addressed probably a thousand times already and might be a really dumb question. B… Read more Python Names And Variables

Std::bad_alloc After Replacing Boost:python Function Wrapper With Python/c Api

I had a function in C which I used to extend python, previously using the BOOST_MODULE function to … Read more Std::bad_alloc After Replacing Boost:python Function Wrapper With Python/c Api

Pointer-type Mismatch With Pyarray_simplenew

I am creating a module for Python with Numpy using the C API and encounter weird incompatibilities … Read more Pointer-type Mismatch With Pyarray_simplenew

Cython Implementation No Faster Than Pure Python

For an exercise I've written a XOR doubly-linked list %%cython from cpython.object cimport PyO… Read more Cython Implementation No Faster Than Pure Python

How Do I Wrap This C Function, With Multiple Arguments, With Ctypes?

I have the function prototype here: extern 'C' void __stdcall__declspec(dllexport) ReturnPu… Read more How Do I Wrap This C Function, With Multiple Arguments, With Ctypes?