def _generate_property(field, template, fname):
 source = template.format(field)
 glbls = {}
 exec_(source, glbls)
 return njit(glbls[fname])

def _generate_property ( field , template , fname ) : source = template . format ( field ) glbls = { } exec_ ( source , glbls ) return njit ( glbls [ fname ] )
generate simple function that get/set a field of the instance .