So check for it falling on midnight. It’s not reasonable to expect that midnight will evaluate
to false, especially when it doesn’t if you happen to have a tzinfo on the time (sometimes!).
That makes the behavior even more surprising and more footgun-ey.
And I claim that you’re reaching to justify stupid behavior.
And yet you can’t control what people do with it. Consistency is a virtue and how objects
act with a tzinfo and how they act without a tzinfo should be as close as possible.
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/