SciPy

scipy.spatial.distance.matching

scipy.spatial.distance.matching(u, v)[source]

Computes the Hamming distance between two boolean 1-D arrays.

This is a deprecated synonym for hamming.