Re: [sympy] Re: Point class repeatedly returns a hardcoded Point class

2014-12-06 Thread Aaron Meurer
This really should be a class method: @classmethod def is_collinear(cls, *points) points = [cls(a) for a in points] Note that this breaks backwards compatibility with the method being called on an instance. Previously it would work, because the instance would be the first element of points (w

[sympy] Re: Point class repeatedly returns a hardcoded Point class

2014-12-06 Thread Duane Nykamp
Well, upon closer examination, I find many uses of Point in point.py that I don't know how to fix. I think my Python knowledge isn't quite there yet. It appears many of the functions are intended be called off the class rather than an instance, such as Point.is_collinear(p1, p2, p3, p4) de