Chris Jerdonek added the comment: > That won't always work for case 1 (when theclass is e.g. 'date') and for case > 4 (even if it's unlikely).
Can you explain what you mean by this? It seems the timedelta allowance would be equally valid and serve the same purpose no matter what case or whether dealing with dates or datetimes (e.g. different date objects because of (1) would also fail the `< timedelta(seconds=0.5)` check). For example-- >>> from datetime import date, timedelta >>> d1 = date(2012, 1, 1) >>> d2 = date(2012, 1, 2) >>> abs(d2 - d1) < timedelta(seconds=0.5) False Basically, the check is to confirm that today and todayagain are within 0.1 seconds of each other -- no matter which case. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15933> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com