Re: [Python-Dev] expy: an expressway to extend Python

2009-08-14 Thread Yingjie Lan
--- On Sat, 8/8/09, Stefan Behnel wrote: > From: Stefan Behnel > Subject: Re: [Python-Dev] expy: an expressway to extend Python > To: python-dev@python.org > Date: Saturday, August 8, 2009, 4:55 PM > > More details at http://expy.sourceforge.net/ > > I'm clearl

Re: [Python-Dev] expy: an expressway to extend Python

2009-08-08 Thread Stefan Behnel
Yingjie Lan wrote: > This is to announce the initial release of expy 0.1.0. > > More details at http://expy.sourceforge.net/ I'm clearly biased, but my main concern here is that expy requires C code to be written inside of strings. There isn't any good editor support for that, so I doubt that exp

Re: [Python-Dev] expy: an expressway to extend Python

2009-07-21 Thread Yingjie Lan
--- On Wed, 7/22/09, Oleg Broytmann wrote: > From: Oleg Broytmann > Subject: Re: [Python-Dev] expy: an expressway to extend Python > To: python-dev@python.org > Date: Wednesday, July 22, 2009, 12:45 AM > On Tue, Jul 21, 2009 at 04:26:52PM > -0400, Eric Entin wrote: > >

Re: [Python-Dev] expy: an expressway to extend Python

2009-07-21 Thread Oleg Broytmann
On Tue, Jul 21, 2009 at 04:26:52PM -0400, Eric Entin wrote: > I think the point of his software is to make it easier to interface Python > with C code I think I understand that. And I think this > > > @function(double) #return type: double > > > def sqrt(x=double): #argument x: double is h

Re: [Python-Dev] expy: an expressway to extend Python

2009-07-21 Thread Eric Entin
I think the point of his software is to make it easier to interface Python with C code, although his examples were probably not the best. Eric Entin On Tue, Jul 21, 2009 at 2:52 PM, Oleg Broytmann wrote: > On Tue, Jul 21, 2009 at 11:22:19AM -0700, Yingjie Lan wrote: > > @function(double) #return

Re: [Python-Dev] expy: an expressway to extend Python

2009-07-21 Thread Oleg Broytmann
On Tue, Jul 21, 2009 at 11:22:19AM -0700, Yingjie Lan wrote: > @function(double) #return type: double > def sqrt(x=double): #argument x: double Python 3.0 has arguments and return value annotations: http://docs.python.org/3.0/whatsnew/3.0.html#new-syntax http://www.python.org/dev/peps/pep-3107

Re: [Python-Dev] expy: an expressway to extend Python

2009-07-21 Thread Yingjie Lan
Hi, Here is a brief example on how to use expy to implement the math module: (for more details, see http://expy.sf.net/) """Python math module by expy-cxpy.""" from expy import * expymodule(__name__) #includes, defines, etc. @prologue def myprolog(): return """ #include """ @function(d

Re: [Python-Dev] expy: an expressway to extend Python

2009-07-21 Thread Oleg Broytmann
On Mon, Jul 20, 2009 at 09:19:10PM -0700, Yingjie Lan wrote: > This is to announce the initial release of expy 0.1.0. > More details at http://expy.sourceforge.net/ What is it (the announcement is too brief and I'm not going to click on a link without a real need)? How does it help core develop

[Python-Dev] expy: an expressway to extend Python

2009-07-20 Thread Yingjie Lan
Hi All, This is to announce the initial release of expy 0.1.0. More details at http://expy.sourceforge.net/ Thanks! Yingjie ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: ht