Hi, There is some unexpected behaviour (to me) when 0-dimensional arrays are compared with values. For example:
numpy.array([0]).squeeze() == 0 True
numpy.array([None]).squeeze() == None False
numpy.array(['a']).squeeze() == 'a' array(True, dtype=bool)
Note that each test follows the same pattern, although the dtype for
each squeezed array is different. The first case result is what I
expected, and the second case result appears wrong. The return type
for the third case is inconsistent with those before, but is at least
workable.
Are these the intended results?
Thanks,
Tom
--
Thomas J. Duck