Look at code in my python file:
class Point:
def __init__(self):
""" Create a new point at the origin """
self.x = 0
self.y = 0
p = Point()
p.x = 4
p.y = 4
I want to create another object q
which contains all the values of p
Yes,we can do it like this: q = Point.objects.create(q.x = p.x,q.y = p.y)
But, I don't want to refer to all the variables inside the class Point
How can I do it ?