python-c-extension
Python/C: Parse all values at once for return to Python?
If you are outputting a lot of values from C to a dict in Python, is there a better (quicker and less error prone) way to do it than:[详细]
2023-01-30 18:39 分类:问答Python interface to dynamic binary instrumentaton framework PIN
I work in analyzing binary files, using Python. I have been using debuggers to do a dynamic analysis (i.e running the application and using breakpoints to get runtime execution). however, results can[详细]
2023-01-27 23:51 分类:问答What is the easiest way to make an optional C extension for a python package?
I\'ve created a C extension that I\'d like to enable in my Python package (using setuptools) only if a command line option is passe开发者_Go百科d in.What is the easiest way to do this?[详细]
2023-01-22 21:19 分类:问答Why is this C method segfaulting?
I\'m writing an immutable linked list class in C, but one method is mysteriously segfaulting.The code is intended to be roughly equivalent to this:[详细]
2023-01-22 11:30 分类:问答Python C extension not threadsafe?
I made a c extension out of a python script that was fairly labour intensive. The code itself is well tested and simple. The c extension is called with a few large lists, and it then performs some cle[详细]
2023-01-22 02:50 分类:问答How to use C extensions in python to get around GIL
I want to run a cpu intensive program in Python across multiple cores and am trying to figure out how to write C e开发者_JAVA百科xtensions to do this.Are there any code samples or tutorials on this?Yo[详细]
2023-01-12 07:22 分类:问答Python C API: Switch on PyObject type
I have some code to interface Python to C++ which works fine but every time I look at it I think there must be a better way to do it.On the C++ side there is a \'variant\' type that can deal with a fi[详细]
2023-01-04 03:22 分类:问答Building lxml for Python 2.7 on Windows
I am trying to build lxml for Python 2.7 on Windows 64 bit machine. I couldn\'t find lxml egg for Python 2.7 version. So I am compiling it from sources. I am following instructions on this site[详细]
2023-01-03 18:49 分类:问答python c extension, problems with dlopen on mac os
I\'ve taken a library that is distributed as a binary lib (.a) and header, written some c++ code against it, and want to wrap the results up in a python module.[详细]
2022-12-30 01:37 分类:问答Python C-API module exit handler - an atexit equivalent?
I\'m using Python 开发者_开发知识库ver 2.6.4 There is a function I have to call from a C library when my extension module exits/is unloaded. What would be the equivalent of atexit for a C extension m[详细]
2022-12-16 21:42 分类:问答