def clone(self, name, **attr):
        """clone a registered object and add/replace attr"""
        obj = deepcopy(self._objs[name])
        obj.__dict__.update(attr)
        return obj
clone a registered object and add/replace attr
recipes/Python/86651_Prototype_pattern/recipe-86651.py