[Python-Dev] expy: an expressway to extend Python
Oleg Broytmann
phd at phd.pp.ru
Tue Jul 21 22:45:10 CEST 2009
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/
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-Dev
mailing list