[pypy-issue] [issue1352] In numpypy, the functions min() and max() are broken

Enzo Michelangeli tracker at bugs.pypy.org
Sat Dec 22 06:27:11 CET 2012


New submission from Enzo Michelangeli <enzomich at gmail.com>:

See below:

[PyPy 2.0.0-beta1 with MSC v.1500 32 bit] on win32
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``today we're faster than yesterday
(usually)''
>>>> min(100,1)
1
>>>> max(1,100)
100
>>>> from numpypy import *  # Now we import numpypy
>>>> min(100,1)
100                    # <---- WRONG!
>>>> max(1,100)
1                      # <---- WRONG!
# But, inverting the order of the arguments:
>>>> max(100,1)
100
>>>> min(1,100)
1
>>>>

----------
messages: 5102
nosy: enzo, pypy-issue
priority: critical
status: unread
title: In numpypy, the functions min() and max() are broken

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


More information about the pypy-issue mailing list