Daniel Stutzbach <dan...@stutzbachenterprises.com> added the comment:

Thanks for pointing that out.  

For what it's worth, if I understand the documentation correctly the goal is to 
prevent the following misleading comparisons:

date with time
datetime with date
datetime with time
datetime w/ timezone with datetime w/o timezone
time w/ timezone with time w/o timezone

It's unfortunate that it throws a TypeError for all comparisons (unlike complex 
numbers which only throw a TypeError when comparing with numbers), but I 
suppose you are right that it's too late to fix this in 2.x.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8005>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to