def change_ext(self, ext):
        name = self.name
        # XXX: is using name.find(".") as done in waf a bug ?
        k = name.rfind('.')
        if k >= 0:
            name = name[:k] + ext
        else:
            name = name + ext

        return self.parent.declare([name])
node of the same path, but with a different extension.
dataset/ETHPy150Open cournape/Bento/bento/core/node.py/NodeWithBuild.change_ext