#NEWLINE# def vector_attribute_names_iterator( ) : #NEWLINE# #INDENT# attrn_p = pointer ( POINTER ( drmaa_attr_names_t ) ( ) ) #NEWLINE# c ( drmaa_get_vector_attribute_names , attrn_p ) #NEWLINE# try : #NEWLINE# #INDENT# name = create_string_buffer ( _BUFLEN ) #NEWLINE# while ( drmaa_get_next_attr_name ( attrn_p . contents , name , _BUFLEN ) != NO_MORE_ELEMENTS ) : #NEWLINE# #INDENT# ( yield name . value . decode ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# except : #NEWLINE# #INDENT# drmaa_release_attr_names ( attrn_p . contents ) #NEWLINE# raise #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# drmaa_release_attr_names ( attrn_p . contents )