What is equivalent of *this = that in python?

Emin.shopper Martinian.shopper emin.shopper at gmail.com
Fri Jun 1 17:30:54 CEST 2007

Dear Experts,

How do I reassign self to another object? For example, I want something like

class foo:
    def Update(self,other):
        # make this object the same as other or make this object a copy of
        self = other # This won't work. What I really want is *this = other
in C++ terminology.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070601/5a911d75/attachment.html>

More information about the Python-list mailing list