[Cython] Cython-0.17 builtin type import bug

2012-09-10 Thread Robert Byrnes
If a builtin type that differs between Python 2 and 3 (e.g., unicode) is imported, then malformed C code is emitted by Cython-0.17: there is an extraneous, unbalanced #if. Here's a small reproducer: shell$ cat foo.pyx cdef extern from "Python.h": ctypedef class __builtin__.unicode [object PyU

[Cython] assignment to reference argument bug, revisited

2014-01-16 Thread Robert Byrnes
Are there any plans to fix the "Assignment to reference" bug mentioned here? https://groups.google.com/forum/?fromgroups=#!topic/cython-users/j58Sp3QMrD4 > Oh, yes, of course. Good old C++, where local T& x is unassignable but > assigning to an argument T& x is a common idiom. This is a bug in Cy