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

Passing A File Descriptor To A C Library Function Through Ctypes On Windows

I am trying to pass a file descriptor through ctypes, to a C function where writes are performed o… Read more Passing A File Descriptor To A C Library Function Through Ctypes On Windows

Call Fortran Function From Python With Ctypes

I am looking to use ctypes to call some old fortran libraries which were written by my boss a few y… Read more Call Fortran Function From Python With Ctypes

Assigning Python Function To Ctypes Pointer Variable

I have the following C source that I compile into a DLL: int (*pfuncExtB)(int a, int b); int funcB… Read more Assigning Python Function To Ctypes Pointer Variable

Python Import Dll

How would I import a winDLL into python and be able to use all of its functions? It only needs doub… Read more Python Import Dll

Can Python Ctypes Load A 32bit C Library On X86-64?

I have a 64 bit RHEL host with 32 bit libraries installed. One vendor has a 32 bit .so I'd like… Read more Can Python Ctypes Load A 32bit C Library On X86-64?

Pep 3118 Warning When Using Ctypes Array As Numpy Array

I'm getting the following warning message when I try to use a ctypes array as a numpy array: Py… Read more Pep 3118 Warning When Using Ctypes Array As Numpy Array