Robert Bradshaw wrote: > On Aug 19, 2009, at 1:25 AM, Stefan Behnel wrote: >> I think the main obstacle here >> is that Py2 doesn't support them, so there's not that much to gain >> from using them in pure Python mode - unless you specifically target >> Cython and Py3.x only. > > I believe that 2.6 has them as well
Interesting. I didn't notice they backported this feature. > but it is still a limited > audience. No reason not to support it though... Sure. Note that cdef classes don't currently support them, but a) that's not a problem for pure Python mode and b) it would be easy to enable cdef class decorators for Cython builtin declarations. Now that I write that, I actually think that the current test inside the parser is too early to catch the pure Python mode anyway, so maybe it actually just works. ;) > Perhaps we could also support > > cdef class A: > a = cython.declare(int) Fine with me - I thought this was already supported? Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
