Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Group info
Language: English
Group categories:
Computers > Programming
More group info »
Discussions
View:  Topic list, Topic summary Topics 1 - 10 of 1633  Older »

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 »
By Czarek Tomczak  - May 22 - 4 new of 4 messages    

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 »
By Czarek Tomczak  - May 22 - 5 new of 5 messages    

Trying to wrap SFML Window; getting "ImportError: No module named 'ExprNodes'" 
  ...cdef extern from "SFML/Window.hpp" namespace "sf": cdef cppclass VideoMode: VideoMode(unsigned int, unsigned int) except + cdef cppclass Window: Window(VideoMode, String) except + void display() ...cimport sfml cdef class Window: cdef sfml.Window* _this def __cinit__(self, unsigned int width, unsigned int height):... more »
By Goran Milovanovic  - May 21 - 1 new of 1 message    

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 »
By Josh Ayers  - May 20 - 7 new of 7 messages    

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 »
By Zaur Shibzukhov  - May 20 - 1 new of 1 message    

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 »
By Shriramana Sharma  - May 19 - 3 new of 3 messages    

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 »
By Pedro Camargo  - May 18 - 2 new of 2 messages    

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 »
By Josh Ayers  - May 18 - 3 new of 3 messages    

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 »
By 杨雪峰  - May 18 - 3 new of 3 messages    

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 »
By 杨雪峰  - May 18 - 1 new of 1 message    

1 - 10 of 1633   « Newer | Older »

XML       Send email to this group: cython-users@googlegroups.com