from numba import autojit, jit

@autojit
def closure_modulo(a, b):
    @jit('int32()')
    def foo():
        return a % b
    return foo()

print closure_modulo(100, 48)

# -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import

from numba import autojit, jit

@autojit
def closure_modulo(a, b):
    @jit('int32()')
    def foo():
        return a % b
    return foo()

print(closure_modulo(100, 48))

Make issue 204 py3 compatible