def __repr__(self):
        args = [type_repr(self.type), self.content, self.name]
        while args and args[-1] is None:
            del args[-1]
        return "%s(%s)" % (self.__class__.__name__, ", ".join(map(repr, args)))
dataset/ETHPy150Open anandology/pyjamas/pgen/lib2to3/pytree.py/BasePattern.__repr__/original