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

Pyobject Segfault On Function Call

I'm trying to use Python to open a dialog to accept input into my C++ application. Here is a v… Read more Pyobject Segfault On Function Call

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

Pass Command Line Arguments To Python 2.7.6 Package Application Using C Api

I'm new to python and now I need to call a python 2.7.6 program using its C API. The python pro… Read more Pass Command Line Arguments To Python 2.7.6 Package Application Using 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?

How To Tidy/fix Pycxx's Creation Of New-style Python Extension-class?

I've nearly finished rewriting a C++ Python wrapper (PyCXX). The original allows old and new st… Read more How To Tidy/fix Pycxx's Creation Of New-style Python Extension-class?

How Do I Use The Correct Dll Files To Enable 3rd Party C Libraries In A Cython C Extension?

I have a C function that involves decompressing data using zstd. I am attempting to call that funct… Read more How Do I Use The Correct Dll Files To Enable 3rd Party C Libraries In A Cython C Extension?

F2py Linking Quadmath Libraries? Use Ctypes For Fortran Wrapper Instead?

Update 11/23/2019: This started out as a question about why I could not get f2py to work for a simp… Read more F2py Linking Quadmath Libraries? Use Ctypes For Fortran Wrapper Instead?

Cannot Start Dbg On My Python C Extension

Im using python3.6.1 installed in pyenv. I have problem with running gdb on my code. When I run gdb… Read more Cannot Start Dbg On My Python C Extension