def distance(self, v1, v2):
        try:
            # Two Vector objects for which the distance was already calculated.
            d = self._cache[(v1.id, v2.id)]
        except KeyError:
            # Two Vector objects for which the distance has not been calculated.
            d = self._cache[(v1.id, v2.id)] = distance(v1, v2, method=self.method)
        except AttributeError:
            # No "id" property, so not a Vector but a plain dict.
            d = distance(v1, v2, method=self.method)
        return d
Split ''-quoted strings into list.
dataset/ETHPy150Open clips/pattern/pattern/vector/__init__.py/DistanceMap.distance--crossover with--dataset/ETHPy150Open twisted/ldaptor/ldaptor/schema.py/ASN1ParserThingie._strings_to_list