summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-08-28 13:04:59 -0600
committerCharles Harris <charlesr.harris@gmail.com>2013-08-28 13:17:40 -0600
commite2675e3ac08f2fb3a7e606123ad063e7e956cb9d (patch)
tree45fe9ae83eae02ce0db9c5c1f08748ae1c92e49e /numpy/lib/utils.py
parentbec793a28a46fce9a4212e058645f017adfa9f74 (diff)
downloadnumpy-e2675e3ac08f2fb3a7e606123ad063e7e956cb9d.tar.gz
BUG: Set __hash__ = None for non-hashable classes.
Because neither poly1d nor the Polynomial package polynomial classes are immutable, hence not reliably hashable, they should signal that by setting __hash__ = None. This also fixes the warning Overriding __eq__ blocks inheritance of __hash__ in 3.x that is given when the command `python2.7 -3 -c"import numpy"` is run.
Diffstat (limited to 'numpy/lib/utils.py')
0 files changed, 0 insertions, 0 deletions