I have a distributed application using xmlrpc and I'd like for a local object to sync itself to match a remote version of the object. I realize that I can copy all the attributes from the remote object to the local object, but that seems like an ugly solution. There must be a better way...
<br><br>Thanks,<br>-Emin<br><br><div><span class="gmail_quote">On 6/1/07, <b class="gmail_sendername">Carsten Haese</b> <<a href="mailto:carsten@uniqsys.com">carsten@uniqsys.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, 2007-06-01 at 11:30 -0400, Emin.shopper Martinian.shopper wrote:<br>> Dear Experts,<br>><br>> How do I reassign self to another object? For example, I want<br>> something like<br>><br>> class foo:
<br>>     def Update(self,other):<br>>         # make this object the same as other or make this object a<br>> copy of other<br>>         self = other # This won't work. What I really want is *this =<br>> other in C++ terminology.
<br><br>There is no such thing in Python. What's the actual problem you're<br>trying to solve?<br><br>--<br>Carsten Haese<br><a href="http://informixdb.sourceforge.net">http://informixdb.sourceforge.net</a><br><br>
<br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</a><br></blockquote></div><br>