[Pyrex] A couple of questions about pyrex

Stefan Behnel stefan_ml at behnel.de
Tue May 12 17:50:16 CEST 2009


Yingjie Lan wrote:
> I would say that
> it seems to me pyrex decides on each statement whether
> to treat it as pythonic or native (c/c++). Then can we
> say that we make this distinction between 'cdef class' and
> 'class' by checking if the class body contains any
> statement treated as native?

No, because this will not work then:

    class MyClass: pass

    MyClass.some_attribute = 1

Stefan




More information about the Pyrex mailing list