[Python-ideas] A General Outline for Just-in-Time Acceleration of Python
Chris Angelico
rosuav at gmail.com
Mon Jun 16 09:15:46 CEST 2014
On Mon, Jun 16, 2014 at 5:05 PM, Stefan Behnel <stefan_ml at behnel.de> wrote:
> You can rewrite this as
>
> import cython
>
> @cython.locals(n=int, i=int)
> def silly():
>
> which makes it valid Python but has the same semantics as your cdef
> declaration when compiled in Cython.
Syntactically valid, yes. Is there a dummy decorator class
cython.locals for the case where it's running under Python?
ChrisA
More information about the Python-ideas
mailing list