[Python-ideas] [Python-Dev] datetime module enhancements
Guido van Rossum
guido at python.org
Mon Mar 12 23:49:51 CET 2007
On 3/12/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Jim Jewett wrote:
> > It would be OK with me to raise an error (ValueError?) on "dt <= d" if
> > "dt in d". Others might feel differently, and prefer to always get
> > the TypeError -- which is probably why dt<t doesn't already do the
> > obvious thing.
>
> Seems to me that given all the conflicting behaviours
> peole want this to have in different circumstances,
> refusing to compare dates and datetimes is the right
> thing to do.
Right. A lot of thought went into this when the original design was done.
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-ideas
mailing list