
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.
The "conflicting behaviors" are really just at the boundaries, and the only reason they're "conflicting" is because people don't really seem to know yet what they need. This is probably an indication that an appropriately extended datetime module should be distributed as a third-party module for a while first... STeVe -- I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a tiny blip on the distant coast of sanity. --- Bucky Katt, Get Fuzzy