[pypy-issue] [issue1077] Comparison with tuples and more
Armin Rigo
tracker at bugs.pypy.org
Sun Mar 4 01:12:30 CET 2012
New submission from Armin Rigo <armin.rigo at gmail.com>:
A bug in the sense that PyPy (>>>>) gives a different behavior than CPython (>>>):
>>> (nan,) <= (5,)
False
>>>> (nan,) <= (5,)
True
Similarly:
>>> (set([6]),) <= (set([5]),)
False
>>>> (set([6]),) <= (set([5]),)
True
The issue is about "<=", which in PyPy is defined by default as "not >". This
can be seen by trying this:
>>>> (nan,) <= (5,)
True
>>>> (nan,) > (5,)
False
>>> (nan,) <= (5,)
False
>>> (nan,) > (5,)
False
----------
messages: 4046
nosy: arigo, pypy-issue
priority: bug
status: unread
title: Comparison with tuples and more
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1077>
________________________________________
More information about the pypy-issue
mailing list