[pypy-issue] [issue1160] numpypy.int missing and numpy.integer doesn't work

Valery tracker at bugs.pypy.org
Thu Oct 18 12:16:00 CEST 2012


Valery <khamenya at gmail.com> added the comment:

hi mattip

  > why should we implement this abstract class?

it rather exists already in pypy:

>>>> np.integer
<type 'numpypy.integer'>

>>>> isinstance(np.int32(1), np.integer)
True

>>>> isinstance(np.int64(1), np.integer)
True

as to this question and the previous one:

  > these seem like needless interfaces, is there an actual use case for them?


the intent was like that: one could make it more compatible with original numpy, if it is a 
*few* lines of patching, of course.

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


More information about the pypy-issue mailing list