[pypy-issue] [issue1152] numpy: int and int32 give different keys to dictionary

timo tracker at bugs.pypy.org
Sun May 27 01:28:27 CEST 2012


New submission from timo <timonator at perpetuum-immobile.de>:

try this:

>>> import numpy as np
>>> d = {0: "success"}
>>> print d[0]
success
>>> print d[np.int32(0)]
success

but on pypy:
>>>> import numpypy as np
>>>> d = {0: "success"}
>>>> print d[np.int32(0)]
KeyError: 0

----------
messages: 4335
nosy: pypy-issue, timo
priority: bug
status: unread
title: numpy: int and int32 give different keys to dictionary

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1152>
________________________________________


More information about the pypy-issue mailing list