[pypy-issue] [issue1024] numpypy: bug with type/dtype

Dmitrey tracker at bugs.pypy.org
Wed Jan 25 17:10:10 CET 2012


New submission from Dmitrey <dmitrey15 at ukr.net>:

This bug prevents porting of numpy funcs concatenate, hstack, vstack, dstack and
may affect lots of other code (unrevealed yet).
code:
a = N.array((1, 2)).dtype.type
b = N.int64
print a, b
print a==b
print id(a), id(b)

CPython numpy result:

<type 'numpy.int64'> <type 'numpy.int64'>
True
140387833263232 140387833263232

PyPy result:

<type 'numpypy.int64'> <type 'numpypy.int64'>
False
39257824 39258752

----------
messages: 3819
nosy: Dmitrey, pypy-issue
priority: bug
status: unread
title: numpypy: bug with type/dtype

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


More information about the pypy-issue mailing list