[issue28878] datetime should not be a subclass of date

2016-12-05 Thread sergem
New submission from sergem: I have Python 3.5.2. datetime is implemented as a subclass of date (isinstance(datetime.datetime(2015,1,1), datetime.date) == True) I suppose that violates Liskov substitution principle: 1. datetime and date cannot be compared via "<". 2. both of these

[issue28878] datetime should not be a subclass of date

2016-12-05 Thread sergem
sergem added the comment: Would you be so kind to point to me to the discussion/arguments for that choice? Also http://www.gossamer-threads.com/lists/python/python/1114426 -- resolution: not a bug -> ___ Python tracker <http://bugs.pyth