def copy(self, **kwargs):
            """Return a copy of this object, with updates."""
            ns = dict((name, getattr(self, name)) for name in names)
            ns.update(kwargs)
            return type(self)(**ns)
Return a copy of this object, with updates.
recipes/Python/578457_Class_Decorator_that_Adds_copy/recipe-578457.py