def repr(self, client, include_children=True):

        self.attributes['children_list'] = ','.join(map(lambda k, v: str(
                id(v)), self.children.keys(), self.children.values()))

        # concatenating innerHTML. in case of html object we use repr, in case
        # of string we use directly the content
        innerHTML = ''
        for s in self._render_children_list:
            if isinstance(s, type('')):
                innerHTML = innerHTML + s
            elif isinstance(s, type(u'')):
                innerHTML = innerHTML + s.encode('utf-8')
            elif include_children:
                innerHTML = innerHTML + s.repr(client)

        html = '<%s %s %s>%s</%s>' % (self.type,
                                   ' '.join('%s="%s"' % (k, v) if v is not None else k for k, v in
                                            self.attributes.items()),
                                   ('class="%s"' % ' '.join(self._classes)) if self._classes else '',
                                   innerHTML,
                                   self.type)
        return html
xor_expr : and_expr
dataset/ETHPy150Open dddomodossola/remi/remi/gui.py/Tag.repr--crossover with--dataset/ETHPy150Open nucleic/enaml/enaml/core/parser.py/p_xor_expr1