New submission from Dmitrey <[email protected]>:

Cpython:
>>> from numpy import abs
>>> abs((1, -2, 3))
array([1, 2, 3])

PyPy:
>>>> from numpypy import *
>>>> abs([1,-2,3])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type for unary abs: 'list'
>>>> from numpypy import abs
>>>> abs([1,2,3])
array([1, 2, 3])

Same bug with max, min etc

----------
messages: 5943
nosy: Dmitrey, pypy-issue
priority: bug
status: unread
title: "from numpypy import *" doesn't yield abs, min, max etc

________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1545>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to