cython
Python strings in a Cython extension type
I have an extension type (cdef class) with a string field. I don\'t know what\'s the best way of declaring it. Assume the following code:[详细]
2023-03-24 00:25 分类:问答Use scipy.integrate.quad from within a cdef statement in Cython?
I am trying to speed up my Python by translating it into Cython. It uses the function scipy.integrate.quad, which requires a python callable as one of its arguments. Is there any way 开发者_StackOverf[详细]
2023-03-23 06:27 分类:问答Segfault in the C code when using a Python tool called guppy ( heapy )
So I am using Python Stackless withheapy on two diffrent machines with the same architectures but slightly different C compilers. Heapy works perfectly fine on the first one, but I get a core dump on[详细]
2023-03-22 14:12 分类:问答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 convenient UI in Python, where user can enter C function, then press a button - and receive some out[详细]
2023-03-20 14:15 分类:问答win32 API calls from cython
Hi i\'m trying to call the CreateFileA win32 function from a pyx file (cython file)(windows.h is already included from the pxd file), but it doesn\'t work ... does anyone ever tried to do so... needs[详细]
2023-03-19 09:08 分类:问答What is the precedence of python compiled files in imports?
Python files are compiled to bytecode (*.pyc). Using Cython you can compile them to machine code (*.so in Linux).[详细]
2023-03-17 23:07 分类:问答Wrapping C++ classes that contain wxString with Cython
I\'m working on a Python extension to tie in with a C++ application written using wxWidgets for the GUI. I\'m using Cython, and have the basic system (build tools, plus a starter extension with approp[详细]
2023-03-13 14:54 分类:问答Cython linking to custom C code
I\'m trying to use sage to run a ba开发者_开发问答sic Cython program that uses a custom C library.[详细]
2023-03-13 02:24 分类:问答Build Cython and gevent on OSX
When I build gevent, I get an error Traceback (most recent call last): File \"/usr/local/Cellar/python/2.7.1/bin/cython\", line 7, in[详细]
2023-03-11 01:00 分类:问答Using Cython to wrap a library that wraps another library
My goal is to use Cython to wrap the Apohenia library, a C library for scientific computing. This is an effort to not rebuild the wheel, and Apophenia itself tries to do the same, by basing its struc[详细]
2023-03-07 21:51 分类:问答