#NEWLINE# def attribute_getter( obj , attribute_name ) : #NEWLINE# #INDENT# '\n    returns a drmaa attribute setter\n    ' #NEWLINE# def f( ) : #NEWLINE# #INDENT# ( 'getter for %s' % attribute_name ) #NEWLINE# attr_buffer = create_string_buffer ( 1024 ) #NEWLINE# c ( drmaa_get_attribute , obj , attribute_name , attr_buffer , sizeof ( attr_buffer ) ) #NEWLINE# return attr_buffer . value #NEWLINE# #UNINDENT# f . __name__ = ( 'get_' + obj ) #NEWLINE# return f