summaryrefslogtreecommitdiff
path: root/numpy/doc/misc.py
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2018-04-07 23:37:20 +0200
committerPauli Virtanen <pav@iki.fi>2018-04-08 17:34:02 +0200
commit18fd6a43f57ebd8b38b29cc800677932bbfe51cd (patch)
treeb8e82d441dc2f8fb0623c04a36360b416879430b /numpy/doc/misc.py
parentb8e8a6ee1f032474a0119fa0c0a6dfb51355abd6 (diff)
downloadnumpy-18fd6a43f57ebd8b38b29cc800677932bbfe51cd.tar.gz
BUG: core: fix NPY_TITLE_KEY macro on pypy
On Pypy, dictionary keys do not necessarily preserve object identity. This however was assumed by the NPY_TITLE_KEY macro, which relies on descriptor.c:568 using the same 'title' object both as a dictionary key as an entry in the tuple inserted. Since the items in the field dict are unique, value identity is however sufficient for the NPY_TITLE_KEY macro. On PyPy, fix the macro by comparing values instead.
Diffstat (limited to 'numpy/doc/misc.py')
0 files changed, 0 insertions, 0 deletions