def distanceFrom(self, other): try: if type(other) is not type(self): return other.distanceFrom(self) else: return DC.pointToPoint(self.getPos(), other.getPos()) except (TypeError, AttributeError): return None