Hi,
I've been trying to convert my 'PyGene' genetic programming/algorithms
package to Cython, and have hit a major obstacle.
With PyGene, configuration is largely done by subclassing and overriding
class attributes.
But with Cython(/Pyrex), this doesn't seem to be possible. If, in a cdef
class, I declare writable class attributes with initialisers, such as:
cdef class Foo:
cdef int bar = 5
the class attribute 'bar' is not getting initialised.
Would it be possible to have class attribute initialiser support in a
future release of Cython?
Cheers
David
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev