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

Python Runtime: Recompiling And Reusing C Library

I am developing a tool for some numerical analysis of user-defined functions. The idea is to make a… Read more Python Runtime: Recompiling And Reusing C Library

Casting Into A Python String From A Char[] Returned By A Dll

I am attempting to cast a C style const char[] string pointer (returned from a DLL) into a Python c… Read more Casting Into A Python String From A Char[] Returned By A Dll

Signed Equivalent Of A 2's Complement Hex Value

On the python terminal when I do :- In [6]: 0xffffff85 Out[6]: 4294967173 In [9]: '%d' %(0… Read more Signed Equivalent Of A 2's Complement Hex Value

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?

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 Fatal Error: Python.h No Such File Or Directory

I have been using Cython to compile my Python files into C files and then use MinGW to create an ex… Read more Cython Fatal Error: Python.h No Such File Or Directory