[Pyrex] Inheritance for extension types
q q
alainpoint at yahoo.fr
Thu Feb 12 13:34:54 CET 2004
Hello,
I'm a Pyrex newbie and i am trying to do the
following:
I have two files: a definition file and a
implementation file
The definition file contains the following code:
cdef class A:
cdef int length
cdef class B(A):
cdef int width
The implementation file contains the following code:
cdef class A:
def __new__(self,int length):
self.length=length
cdef class B(A):
def __new__(self,int length, int width):
A.__new__(self,length)
self.width=width
This does not compile and i get a traceback from
Python.
The documentation does not give any info about how
transmit parameters to the parent class
Thank you for helping
Alain
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
More information about the Pyrex
mailing list