#NEWLINE# @ lower_builtin ( 'list.reverse' , types . List ) #NEWLINE# def list_reverse( context , builder , sig , args ) : #NEWLINE# #INDENT# def list_reverse_impl( lst ) : #NEWLINE# #INDENT# for a in range ( 0 , ( len ( lst ) // 2 ) ) : #NEWLINE# #INDENT# b = ( ( - a ) - 1 ) #NEWLINE# ( lst [ a ] , lst [ b ] ) = ( lst [ b ] , lst [ a ] ) #NEWLINE# #UNINDENT# #UNINDENT# return context . compile_internal ( builder , list_reverse_impl , context , args )