ctypes
help with python ctypes and nvapi
My end goal is to query NVAPI for gpu usage and other statistics in python.See http://developer.nvidia.com/nvapi[详细]
2023-03-08 19:45 分类:问答Using python ctypes to wrap flattened c++ class method returning union pointer
I\'m writing a python wrapper for a C++ DLL using ctypes.I\'ve \"flattened\" the C++ Class to handle based C functions, and most of them are working well.There are a few weird functions in the class l[详细]
2023-03-08 17:48 分类:问答How to access DirectSound device info from Python?
I\'ve found this information on SO about how to enumerate the sound device info on with .NET, but I don\'t really know how to use this information with Python.As you can probably tell, I have almost z[详细]
2023-03-08 16:25 分类:问答Call an External C++ function and Memory Leaks: is all allocated memory cleaned up after finishing Python script?
Python script calls an external 开发者_如何学编程C++ function (using ctypes). Memory leaks are possible when execution the C++ function.[详细]
2023-03-08 14:53 分类:问答Error with Python ctypes and librsvg
I\'m trying to wrap basic function of librsvg with ctypes for Python, but I\'m getting a segfault. C: // pycairo excerpt[详细]
2023-03-08 10:32 分类:问答Create ctypes binding to C function with variable length arg list
Assuming I have C function with variable length argument list: int some_func(int arg1 , ... ); Is it possible (easy?) to call this function from python using ctypes?[详细]
2023-03-07 14:36 分类:问答How to use struct information from mouse/keyboard hook in ctypes
So I\'ve got some c code that looks like this: #pragma comment(linker, \"/SECTION:.SHARE开发者_运维技巧D,RWS\")[详细]
2023-03-01 04:52 分类:问答Is it simple to implement a simple python function in C?
I am working on the problem posed by this post: Fast way to remove a few items from a list/queue Basically all I want to do is implement a for loop in C.The for loop needs to access a generator and b[详细]
2023-02-28 19:04 分类:问答ctypes: construct pointer from arbitrary integer
For low-level purposes, I need to construct a ctypes pointer from an arbitrary address, given开发者_如何学编程 as an integer. For instance:[详细]
2023-02-28 10:54 分类:问答How does BLAS sgemm/dgemm work?
I am trying to make use of the function sgemm in BLAS using ctypes in python. Trying to solve C = A x B the following code works just fine:[详细]
2023-02-27 07:49 分类:问答