Brian Kearns <[email protected]> added the comment:

CPython _does_ have the equivalent of mytz is ottz, look at 
classify_two_utcoffsets (called from time_richcompare). Seems to do pointer 
compare on get_tzinfo_member(o1) and get_tzinfo_member(o2) before calling 
utcoffset.

In these cases, what is "more correct" is "what CPython does". If you have an 
issue with what CPython does, you should take it up with them. If you can 
demonstrate a test that passes on CPython and fails on PyPy, that would be a 
bug 
and a justification for modifying PyPy behavior.

The tests in the newest patch pass on both CPython and current PyPy, and so do 
not represent a bug.

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

Reply via email to