New issue 3018: numpy.array_equal behaves differently from python3 when comparing ctype types https://bitbucket.org/pypy/pypy/issues/3018/numpyarray_equal-behaves-differently-from
Jan Vesely: ```python Python 3.6.1 (784b254d669919c872a505b807db8462b6140973, Apr 21 2019, 14:47:54) [PyPy 7.1.1-beta0 with GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. And now for something completely different: ``PyPy is vast, and contains multitudes'' >>>> import ctypes >>>> import numpy >>>> a = ctypes.c_int(1) >>>> numpy.array_equal(a, True) False >>>> numpy.array_equal(a, 1) False ``` vs. ``` Python 3.6.5 (default, Feb 24 2019, 17:47:37) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import numpy >>> import ctypes >>> a = ctypes.c_int(1) >>> numpy.array_equal(a, 1) True >>> numpy.array_equal(a, True) True ``` Both instances are running numpy-1.15.4 _______________________________________________ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue