On 3/12/07, Greg Ewing email@example.com 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.