#NEWLINE# def getFunctionDirectClosureArgs( closure_variables ) : #NEWLINE# #INDENT# result = [ ] #NEWLINE# for closure_variable in closure_variables : #NEWLINE# #INDENT# if closure_variable . isSharedTechnically ( ) : #NEWLINE# #INDENT# result . append ( ( 'PyCellObject *%s' % getVariableCodeName ( in_context = True , variable = closure_variable ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# result . append ( ( 'PyObject *&%s' % getVariableCodeName ( in_context = True , variable = closure_variable ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# return result