You cannot post messages because only members can post, and you are not currently a member.
Description:
Questions, help, and general non-development discussion related to Cython.
http://cython.org
|
|
|
Compiler crash in AnalyseExpressionsTransform
|
| |
Hi, I'm getting this crash while compiling with Cython: web_request.pyx:54:19: Compiler crash in AnalyseExpressionsTransform ...The code is: cdef cpp_map[int, void*] g_pyWebRequests ...PyWebRequest is a cdef class. What to do? A side note: I have to keep PyWebRequests in C++ map as I do not want to increase... more »
|
|
How to set compiler directive in setup.py?
|
| |
Hi, I'm trying to set c_string_type and c_string_encoding compiler directives in setup.py file, but it does not work, here is the code: from Cython.Compiler import Options ...On the other hand, setting the "fast_fail" option works fine: Options.fast_fail = True But seems like this is a different type of option, not listed in the... more »
|
|
compiler warning - pointer difference assumed to be int
|
| |
When compiling under Windows using 64-bit Visual Studio 2008, I get a C compiler warning associated with line 798 of numpy.pxd. It complains that an __int64 is being converted to a long. Here's the relevant section of numpy.pxd (with a few unimportant lines removed for clarity). cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL:... more »
|
|
About local variable definitions in functions
|
| |
Let's consider use case. One is use .py file and .pxd file for type annotation. Currently if someone need local variable definitions he uses @locals(...) decorator. I'm wonder if Cython syntac could be extended to allowing something like following inside of .pxd: cdef int func(int a): cdef int i, j... more »
|
|
Cythonize is special?
|
| |
Hello. How exactly is:
from distutils.core import setup
from Cython.Build import cythonize
setup(
name = "My hello app",
ext_modules = cythonize('hello.pyx'), # accepts a glob pattern
)
different from:
from distutils.core import setup
from distutils.extension import Extension... more »
|
|
Type error
|
| |
Hi guys,
I'm working on a fairly long code that is compiling
correctly, but giving an error when it runs.
I'm working on Windows 64 bits, Python 2.7 (last installer
made available) and the last versions of the installers for
Numpy/Scipy/Cython made by Chris Gohlke.... more »
|
|
for loop with variable step not optimized
|
| |
I just noticed that a for-loop using the standard Python range construct isn't optimized to C-code if the step is a run-time variable. It is optimized if the step parameter is a compile-time constant, or if the old Pyrex style for-loop syntax is used. I tested with Cython 0.18 and 0.19.1 and both behaved the same way.... more »
|
|
Cython c compiler setting
|
| |
Hi all I follow the instruction from [link] try to use windows c compiler to build python extension. but cython are still using mingw gcc to compile my files which cause many undefined reference errors. it became green words after i command setenv /x64 /release... more »
|
|
Win7 Python 2.7 Cython helloworld example compile error ! help ,please
|
| |
Hi all:
I am a new user of Cython. I install it by the Anaconda package. When i try the example on the website, i get the following problem !
Setup.py from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
setup(
cmdclass = {'build_ext': build_ext},... more »
|
|
|