[Pyrex] Patch for multiple derivation of C defined type

Jiba jiba at tuxfamily.org
Sat Dec 27 17:13:08 CET 2003


On Sat, 27 Dec 2003 00:24:19 +0100
Jiba <jiba at tuxfamily.org> wrote:

> 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
> 

The patch generates a non-compilable C code... This patch is the a
better one !

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


More information about the Pyrex mailing list