[Python-ideas] Please reconsider the Boolean evaluation of midnight

Paul Moore p.f.moore at gmail.com
Thu Mar 6 12:54:34 CET 2014


On 6 March 2014 11:36, Rob Cliffe <rob.cliffe at btinternet.com> wrote:
> You're joking, right?

No. You just sent 2 "you're joking" messages. You're joking, right?
Any time anyone presents a use case or proposal that contradicts what
you want it must be a joke?

I really am sick of being misinterprested and misrepresented on this thread.

> How do you distinguish "omitted" from "provided, equals midnight" ?

I will not explain all the details of how database applications
process dates here. All I offered was a perspective that some
application domains, in certain cases, see "midnight" as having a
special meaning distinct from the specific point in time. I did so
because other people's views were being characterised as irrelevant
because they developed datetime modules (as if that made them somehow
*less* qualified to have an opinion) and I sympathised with them over
the hostile reception they were getting. I didn't comment on whether
that meant the Python behaviour was good or bad, or whether the
practice of truth-testing time values was good or not. Feel free to
investigate the details if you care, or ignore my post if you don't.
But I'm not trolling, nor do I appreciate the implication that I am.

Paul.


More information about the Python-ideas mailing list