parameters: (self, attr_name, **kw)
return_statement: return ret
docstring: Like get_or_create_sub_with_attributes.
docstring_summary: Like get_or_create_sub_with_attributes.
docstring_tokens: Like get_or_create_sub_with_attributes .
function: def get_all_with_attributes(self, attr_name, **kw):
          """Like get_or_create_sub_with_attributes."""
          ret = []
          for data in self.get_all(attr_name):
              if isinstance(data, DataSub):
                  for key in kw:
                      if data.get_text_val(key) != kw[key]:
                          break
                  else:
                      ret += [data]
          return ret
function_tokens: def get_all_with_attributes ( self , attr_name , * * kw ) : ret = [ ] for data in self . get_all ( attr_name ) : if isinstance ( data , DataSub ) : for key in kw : if data . get_text_val ( key ) != kw [ key ] : break else : ret += [ data ] return ret