What is equivalent of *this = that in python?
Carsten Haese
carsten at uniqsys.com
Fri Jun 1 11:49:04 EDT 2007
More information about the Python-list mailing list
Fri Jun 1 11:49:04 EDT 2007
- Previous message (by thread): What is equivalent of *this = that in python?
- Next message (by thread): What is equivalent of *this = that in python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 2007-06-01 at 11:30 -0400, Emin.shopper Martinian.shopper wrote: > 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 other > self = other # This won't work. What I really want is *this = > other in C++ terminology. There is no such thing in Python. What's the actual problem you're trying to solve? -- Carsten Haese http://informixdb.sourceforge.net
- Previous message (by thread): What is equivalent of *this = that in python?
- Next message (by thread): What is equivalent of *this = that in python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list