Is it safe to replace a self object by another object of the same type in a method?
<p>I would like to replace an object instance by another instance inside a method like this:</p>

<pre><code>class A:
    def method1(self):
        self = func(self)
</code></pre>

<p>The object is retrieved from a database.</p>
