Skip to content
  • Tjerk Vreeken's avatar
    Avoid element-wise None comparisons · d4450349
    Tjerk Vreeken authored
    Generally "is None" and "is not None" are considered the proper way of
    comparing. When comparing to e.g. Numpy arrays (in Numpy >= 1.13), the
    behavior of "is None" differs from "== None", with the latter doing
    element-wise comparisons.
    d4450349