[Pyrex] Patch for multiple derivation of C defined type

Jiba jiba at tuxfamily.org
Sat Dec 27 00:24:19 CET 2003


Hi,

I've discovered another bug in Pyrex : if you define 3 extension types,
each of them derived from the previous one, the third type cannot
reference the cdef'ed attributes defined by the first type.

See file bug.pyx for an example. 'pyrexc bug.pyx' yields :

	/home/jiba/src/soya/./bug.pyx:19:20: Cannot convert Python object to
'float (*)'

The patch is a small patch that fixes the bug : the inherited attributes
are copied in the children type, but they were created by calling
"declare", and not "declare_var", and so they were not added in the
var_entries list.

Jiba
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug.pyx
Type: application/octet-stream
Size: 393 bytes
Desc: not available
Url : http://lists.copyleft.no/pipermail/pyrex/attachments/20031227/697b365e/bug.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pyrex-multiple-derivation.patch
Type: application/octet-stream
Size: 667 bytes
Desc: not available
Url : http://lists.copyleft.no/pipermail/pyrex/attachments/20031227/697b365e/pyrex-multiple-derivation.obj


More information about the Pyrex mailing list