Brian Granger wrote:
> I am wondering if there are any issues with declaring a regular python
> class in a pyx file.

No, that should work pretty much the same as it does
in Python.

There are a couple of very minor differences -- it creates
the class before executing the class body rather than after,
and it wraps methods in unbound method objects before putting
them in the class (because they're C-implemented functions
rather than Python ones, so the usual descriptor magic
doesn't get done). But you probably won't notice any of this
except in very rare circumstances.

-- 
Greg
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to