Alexander Belopolsky <belopol...@users.sourceforge.net> added the comment:
On Fri, Jul 2, 2010 at 6:00 PM, Tim Peters <rep...@bugs.python.org> wrote: > > Tim Peters <tim.pet...@gmail.com> added the comment: > >> Do you remember why it was a good idea to >> derive datetime from date? > > Why not? A datetime is a date, but with additional behavior. Makes > inheritance conceptually natural. It is also time with additional behavior. In the face of ambiguity ... Why not? See issue #5516. Most of datetime comparison code is devoted to fighting inheritance from date. There is hardly any non-trivial method that benefits from this inheritance. To me, conceptually, datetime is a container of date, time and optionally time zone, it is not a date. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7989> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com