I've already been checking around for any similar problem...
If I'm a true beginner (so talk slowly, ^ ^ thanks) the solution is certainly for good ones
I'm confident with this cos most students questions around here got the same code as mine.
Whatever it is and whoever you are, thanks for your solution.
class Point3D(object): def _init_(self, x, y, z): self.x = x self.y = y self.z = z def _repr_(self): return "(%d, %d, %d)" % (self.x, self.y, self.z) my_point = Point3D( 1, 2, 3) print my_point
Traceback (most recent call last): File "python", line 10, in <module> TypeError: object.__new__() takes no parameters