On Wed, Aug 28, 2013 at 10:03 AM, Charles R Harris <[email protected]> wrote: > > > > On Wed, Aug 28, 2013 at 9:32 AM, Neal Becker <[email protected]> wrote: >> >> I tried running python2 -3 on some code, and found numpy >> produces a lot of warnings. >> >> Many like: >> python -3 -c 'import numpy' >> ... >> /usr/lib64/python2.7/site-packages/numpy/lib/polynomial.py:928: >> DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in >> 3.x >> >> But also: >> /usr/lib64/python2.7/site-packages/numpy/lib/shape_base.py:838: >> DeprecationWarning: classic int division >> n /= max(dim_in,1) >> For the rest, defining `__hash__ = None` should work, at least for the numpy.polynomial classes, as they aren't immutable.
Chuck _______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
