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

Rob Cliffe rob.cliffe at btinternet.com
Thu Mar 6 12:36:40 CET 2014


On 06/03/2014 10:57, Paul Moore wrote:
>
> I had promised to stay out of this discussion as I no longer thing it
> adds much value (note that the bug has been reopened long since) and I
> was getting tired of having people decide that I'd said something I
> didn't mean.
>
> But just to add a perspective from someone who *doesn't* develop a
> datetime module, I encounter "special" midnight values very often.
> Databases (at least Oracle, and I believe others) typically store date
> values ("Thursday 6th March 2014") as a timestamp value with midnight
> as a time part. So checking the time part of a datetime value for
> midnight as a "special, means omitted" value is not uncommon in that
> domain.
>
> Paul
You're joking, right?
How do you distinguish "omitted" from "provided, equals midnight" ?
Rob Cliffe
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.2247 / Virus Database: 3705/6655 - Release Date: 03/05/14
>
>



More information about the Python-ideas mailing list