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 Alexander.Belopolsky
Recipients Alexander.Belopolsky, jackdied, jess.austin, mark.dickinson, ncoghlan
Date 2010-04-21.18:46:24
SpamBayes Score 7.27242e-08
Marked as misclassified No
Message-id <>
In-reply-to <>
On Wed, Apr 21, 2010 at 2:33 PM, Jess Austin <> wrote:
> It might seem like the latter behavior is marginally better, but really this is just a mess, since a date-datetime comparison TypeErrors in all
> directions.  I appreciate Alexander's more experienced perspective, but it's not obvious to me that this problem is insoluble simply due to OOP
> algebra.  I'm going to keep tinkering with this to see if there isn't a way to satisfy his concerns AND fix these bugs WITHOUT breaking the
> established (and admittedly anti-OOP) behavior that dates are not equal to datetimes.

I certainly don't have a proof that this is impossible, so best of
luck.  Note, however that the problematic behavior is due to D/DT
classes implementor's choice not to derive DT from D.  Whether
resulting violation of the symmetry of equality is a bug in python or
D/DT implementation is at least an open question.
Date User Action Args
2010-04-21 18:46:26Alexander.Belopolskysetrecipients: + Alexander.Belopolsky, mark.dickinson, ncoghlan, jackdied, jess.austin
2010-04-21 18:46:24Alexander.Belopolskylinkissue5516 messages
2010-04-21 18:46:24Alexander.Belopolskycreate