Regression with 0.9.8.3 and above

KS Sreeram <[email protected]> Sun, 05 Apr 2009 10:56:58 +0530
Newsgroups gmane.comp.python.pyrex
Message-ID <[email protected]>
Hi all,

I noticed errors when building ncrypt (http://tachyon.in/ncrypt) with a 
recent version of Pyrex. After some testing, I've narrowed it down to a 
simple example.

Basically if a .pyx file contains a cdef'd class which is not present in 
the corresponding .pxd file, then the module fails to compile. This 
results in a error only with versions 0.9.8.3 and above. This doesn't 
cause a problem when compiling with 0.9.8.2.

I've attached testpyrex.pxd and testpyrex.pyx which demonstrate the issue.

Is this an intentional change? or is it just a bug?

For now, I've reverted back to using 0.9.8.2.

Regards
KS Sreeram
Founder, Tachyon Technologies

_______________________________________________
Pyrex mailing list
[email protected]
http://lists.copyleft.no/mailman/listinfo/pyrex
testpyrex.pxd (text/plain, 37 B)
cdef class Person :
    cdef int age_
testpyrex.pyx (text/plain, 299 B)
cdef class Name :
    def __new__(self) :
        self.str = "Foo"

cdef class Person :
    def __new__(self) :
        self.age_ = 12
    def age(self) :
        return self.age_
    def set_age(self, age) :
        self.age_ = age
    def copy_name(self, Name name) :
        self.name = name.str