A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-July/090715.html below:

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

[Python-Dev] expy: an expressway to extend PythonYingjie Lan lanyjie at yahoo.com
Wed Jul 22 03:15:45 CEST 2009
--- On Wed, 7/22/09, Oleg Broytmann <phd at phd.pp.ru> wrote:

> From: Oleg Broytmann <phd at phd.pp.ru>
> Subject: Re: [Python-Dev] expy: an expressway to extend Python
> To: python-dev at python.org
> Date: Wednesday, July 22, 2009, 12:45 AM
> 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 how C functions are declared in
> Python, so I think annotations is the
> way to go for such declarations.
> 
> > >    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/
> 

Thanks, I think that is a brilliant suggestion,
when expy is implemented for Python 3.0, this 
will greatly improve readability, and make it 
more like a natural part of Python.

Yingjie


      
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4