[Numpy-discussion] lots of warnings with python3
Charles R Harris
Wed Aug 28 12:36:06 CDT 2013
On Wed, Aug 28, 2013 at 10:03 AM, Charles R Harris
> On Wed, Aug 28, 2013 at 9:32 AM, Neal Becker <firstname.lastname@example.org> wrote:
>> I tried running python2 -3 on some code, and found numpy
>> produces a lot of warnings.
>> Many like:
>> python -3 -c 'import numpy'
>> DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in
>> But also:
>> 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.
More information about the NumPy-Discussion