Python initialiser
<p>I have this initialiser for a line class in Python and it takes two points as a parameter. The problem is my initialiser is only copying the references. So self.point0 and point 0 are pointing to the same object. I am not really sure how to change that so that I am not just copying the reference.
Line class:</p>

<pre><code>def __init__(self, point0, point1): 
    self.point0 = point0
    self.point1 = point1
</code></pre>

<p>Point class:</p>

<pre><code>def __init__(self, x, y):
    self.x = x
    self.y = y
</code></pre>