@property
    def slope(self):
        d1, d2 = (self.p1 - self.p2).args
        if d1 == 0:
            return S.Infinity
        return simplify(d2/d1)
lazy function service factory
dataset/ETHPy150Open sympy/sympy/sympy/geometry/line.py/LinearEntity.slope--crossover with--dataset/ETHPy150Open enthought/envisage/envisage/tests/service_registry_test_case.py/ServiceRegistryTestCase.test_lazy_function_service_factory