[Python-apps-team] Bug#463625: cython: cdef-ed attribute -> invalid C source
Jakub Wilk
ubanus at users.sf.net
Fri Feb 1 19:56:55 UTC 2008
Package: cython
Version: 0.9.6.11.ds-1
Severity: normal
cython produces invalid C code if an extension type contains an attribute with
type declared as another extension type.
$ cat buggy.pyx
cdef class A:
pass
cdef class B:
cdef A a
$ gcc --version | head -n 1
gcc (GCC) 4.2.3 20080114 (prerelease) (Debian 4.2.2-7)
$ cython buggy.pyx && gcc buggy.c -I/usr/include/python2.4/
buggy.c: In function '__pyx_tp_clear_5buggy_B':
buggy.c:300: error: lvalue required as left operand of assignment
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (900, 'testing'), (600, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/dash
Versions of packages cython depends on:
ii python 2.4.4-6 An interactive high-level object-o
ii python-support 0.7.6 automated rebuilding support for p
cython recommends no packages.
-- debconf-show failed
--
Jakub Wilk
More information about the Python-apps-team
mailing list