Re: [Cython] PyPy3 fixes

2015-03-18 Thread Stefan Behnel
Lisandro Dalcin schrieb am 08.03.2015 um 20:25: > 1) Stefan, I had to push this fix, just to be sure, please double check. > > https://github.com/cython/cython/commit/6bd3f7b9e494d1259082aecfc0366da15fc105ec Thanks - sorry for the bug. > 2) PyPy3 defines some legacy (Py2) Py_TPFLAGS_XXX values.

[Cython] Generated function has invalid name when converting from python object to C struct defined in C++ namespace

2015-03-18 Thread Daniel Grunwald
Hello, I have Cython code like this: cdef extern from "cpp_library.h" namespace "CppLibrary": struct SomeStruct: int i void do_with_struct(SomeStruct s) def run(): do_with_struct(object()) With cython 0.21.1, invalid C++ code is generated: struct

[Cython] Cython magic annotate option is broken under IPython 3.0

2015-03-18 Thread Nathan Goldbaum
Hi all, To reproduce this issue, be on cython 0.22 and IPython 3.0 and run the following notebook: http://nbviewer.ipython.org/gist/ngoldbaum/855a629d997aa7959254 Googling the error returns some several year old discussions in IPython related to the autoreload magic and I'm not sure if that is a

[Cython] Proposal: extern implementations of functions

2015-03-18 Thread Jeroen Demeyer
Hello Cython developers, I would like to propose a new mechanism to implement functions in an external .c file. The goal is to solve the problem I was having in https://groups.google.com/forum/#!topic/cython-users/TsbBNyvwZn4 With the attached patch, you can do the following: * in foo.pxd, de