#NEWLINE# def attrgetter( attr ) : #NEWLINE# #INDENT# code = ( 'def func(x):\n        return x.%(attr)s\n' % locals ( ) ) #NEWLINE# pyfunc = compile_function ( 'func' , code , globals ( ) ) #NEWLINE# return jit ( nopython = True ) ( pyfunc )