Re: [Cython] Rewriting/compiling parts of CPython's stdlib in Cython

2011-03-22 Thread Robert Bradshaw
On Tue, Mar 22, 2011 at 4:09 PM, Dan Stromberg wrote: > > I think it's a good idea, but I think it'd be better to use pure mode to get > code that runs either way, or some sort of preprocessor (I've used m4 with > good luck for this, though it doesn't syntax highlight nicely) to > automatically de

Re: [Cython] Rewriting/compiling parts of CPython's stdlib in Cython

2011-03-22 Thread Dan Stromberg
I think it's a good idea, but I think it'd be better to use pure mode to get code that runs either way, or some sort of preprocessor (I've used m4 with good luck for this, though it doesn't syntax highlight nicely) to automatically derive pure python and cython from the same source file. For me at

Re: [Cython] PyCharm

2011-03-22 Thread mark florisson
On 22 March 2011 15:33, Jason Grout wrote: > On 3/16/11 5:33 AM, mark florisson wrote: >> >> The PyCharm IDE (http://www.jetbrains.com/pycharm/) has granted the >> Cython project a free Open Source license, which means that anyone >> developing Cython may freely use PyCharm to develop Cython. They

[Cython] cython crash: default parameters in methods of template cppclass

2011-03-22 Thread Simon Anders
Hi, I found a little bug in Cython 0.14.1. The following causes the Cython compiler to throw an exception: ---8<--- cdef extern from "foo.h": cdef cppclass foo[ T ]: bar( int b = 0 ) cdef foo[ int ] a a.bar( 1 ) ---8<--- The exception is "AttributeError: 'CFuncType' object has no a

Re: [Cython] PyCharm

2011-03-22 Thread Jason Grout
On 3/16/11 5:33 AM, mark florisson wrote: The PyCharm IDE (http://www.jetbrains.com/pycharm/) has granted the Cython project a free Open Source license, which means that anyone developing Cython may freely use PyCharm to develop Cython. They prefer to license to remain unpublic, so if you develop

Re: [Cython] Rewriting/compiling parts of CPython's stdlib in Cython

2011-03-22 Thread Stefan Behnel
Robert Bradshaw, 22.03.2011 08:14: On Mon, Mar 21, 2011 at 11:10 PM, Stefan Behnel wrote: there seems to be quite some interest in a project to get parts of CPython and specifically its stdlib rewritten in Cython. [...] In short, we have strong supporters, but Guido has understandable doubts aga

Re: [Cython] Rewriting/compiling parts of CPython's stdlib in Cython

2011-03-22 Thread Robert Bradshaw
On Mon, Mar 21, 2011 at 11:10 PM, Stefan Behnel wrote: > Hi, > > there seems to be quite some interest in a project to get parts of CPython > and specifically its stdlib rewritten in Cython. I've copied the latest > python-dev mail below. The relevant part of the thread is here: > > http://thread.