Created
September 30, 2015 18:01
-
-
Save ssarangi/28ba8262aa007d11e588 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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