This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author stutzbach
Recipients Alexander.Belopolsky, mark.dickinson, r.david.murray, stutzbach, tim.peters, twb, wsanchez
Date 2010-04-27.18:12:01
SpamBayes Score 0.00062121416
Marked as misclassified No
Message-id <1272391931.26.0.647723245187.issue8005@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-04-27 18:12:11stutzbachsetrecipients: + stutzbach, tim.peters, mark.dickinson, wsanchez, r.david.murray, twb, Alexander.Belopolsky
2010-04-27 18:12:11stutzbachsetmessageid: <1272391931.26.0.647723245187.issue8005@psf.upfronthosting.co.za>
2010-04-27 18:12:01stutzbachlinkissue8005 messages
2010-04-27 18:12:01stutzbachcreate