Message103886
On Wed, Apr 21, 2010 at 2:33 PM, Jess Austin <report@bugs.python.org> 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:26 | Alexander.Belopolsky | set | recipients:
+ Alexander.Belopolsky, mark.dickinson, ncoghlan, jackdied, jess.austin |
2010-04-21 18:46:24 | Alexander.Belopolsky | link | issue5516 messages |
2010-04-21 18:46:24 | Alexander.Belopolsky | create | |
|