Skip to content

Instantly share code, notes, and snippets.

@ssarangi
Created September 30, 2015 18:01
Show Gist options
  • Save ssarangi/28ba8262aa007d11e588 to your computer and use it in GitHub Desktop.
Save ssarangi/28ba8262aa007d11e588 to your computer and use it in GitHub Desktop.
from numba import double, jit
def top_level():
a = 10
a = a * 5
def inner():
nonlocal a
a = a * 5
print(a)
jit_inner = jit(double())(inner)
print(jit_inner())
print(a)
top_level()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment