code: def _dist(self, x, y):
          
          if self.is_uniform and not self.is_uniformly_weighted:
              bdry_fracs = self.partition.boundary_cell_fractions
              func_list = _scaling_func_list(bdry_fracs, exponent=self.exponent)
              arrs = [apply_on_boundary(vec, func=func_list, only_once=False)
                      for vec in (x, y)]
  
              return super(DiscreteLp, self)._dist(
                  self.element(arrs[0]), self.element(arrs[1]))
          else:
              return super(DiscreteLp, self)._dist(x, y)
docs: Return ``self.dist(x, y)``.