Daniele Varrazzo <daniele.varra...@gmail.com> added the comment:
Considering that I have found another pair of dates failing equality, and they are too on the last Sunday of October, the hypothesis of rounding in timezone code starts to look likely.... Python 3.7.9 (default, Jan 12 2021, 17:26:22) [GCC 8.3.0] on linux >>> import datetime, backports.zoneinfo >>> d1 = datetime.datetime(2255, 10, 28, 7, 31, 21, 393428, >>> tzinfo=datetime.timezone(datetime.timedelta(seconds=27060))) >>> d2 = datetime.datetime(2255, 10, 28, 2, 0, 21, 393428, >>> tzinfo=backports.zoneinfo.ZoneInfo(key='Europe/Rome')) >>> d1 - d2 datetime.timedelta(0) >>> d1 == d2 False Added Python 3.7 to the affected list. ---------- versions: +Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45347> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com