ctypes
A way to pass milions of items in python to C program many times in rapid succesion
I\'ve wrote a python script that need to pass millions of items to a C program and receive its output many times in a short period (pass from 1 up to 10 millions of vertices data (integer index and 2[详细]
2023-02-10 05:59 分类:问答Porting ctypes-based code snippet from linux to windows
I have the following code that works under linux. I want to port it to Windows but i have no idea where to look for.[详细]
2023-02-08 16:59 分类:问答GetThreadContext() returns error 18 - There are no more files
GetThreadContext() returns error 18 - There are no more files. I\'ve searched all over the place and cannot find explanation to the error. Could someone clarify this for me?[详细]
2023-02-08 09:34 分类:问答How to create array of the certain type in python
How do you create an array of defined length of the certain type in python? To be precise I am trying to create an array of handles that is able to hold up to 1024 records. I figured out an analog to[详细]
2023-02-07 23:22 分类:问答Python :: ctypes :: GetProcAddress() returns error
The following is a part of a debugger class. I\'ve got the following code for enumerating processes in debugee. First it enumerates and loads handles of the existing debugee\'s processes into an array[详细]
2023-02-07 15:40 分类:问答python cdll can't find module
I have a library consisting of two dll files and one python wrapper. I currently have code based on these three files being in the same parent directory as my main python file.I am now attempting to[详细]
2023-02-06 11:10 分类:问答Python class is a subclass of itself, is this ok? Pitfalls?
I am wrapping a large C library using ctypes.ctypesgen generated the wrapping code (not too far开发者_Go百科 from how I do it myself).As a part of the ctypes wrapping C structures get made as objects,[详细]
2023-02-05 13:34 分类:问答Wrapping a function which returns a pointer to a python object with ctypes
I\'ve got some code which comp开发者_运维技巧iles a C function to create a numpy generic function with it using PyUFunc_FromFuncAndData. I\'ve written some cython to create the ufunc but I\'d like to[详细]
2023-02-05 07:19 分类:问答Callback functions in field in Python ctypes
I am trying to register callback functions for .dll library in Python with ctypes. But it requires callback functions in structure/field. Because it doesn\'t work (no errors but callback functions are[详细]
2023-02-04 14:02 分类:问答How to set a __str__ method for all ctype Structure classes?
[Since asking this question, I\'ve found: http://www.cs.unc.edu/~gb/blog/2007/02/11/ctypes-tricks/ which gives a good answer.][详细]
2023-02-04 09:20 分类:问答