
March 12, 2007
10:49 p.m.
On 3/12/07, Greg Ewing <greg.ewing@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/)