[Datetime-SIG] PEP-495 - Strict Invalid Time Checking

Carl Meyer carl at oddbird.net
Tue Aug 25 21:42:53 CEST 2015



On 08/25/2015 01:36 PM, Carl Meyer wrote:
...
> 1) Just set the `is_dst` flag to either True or False always. In a fold,
> this inevitably results in at least one slot which ends before it
> starts. My slot data structure was built to raise an exception in that
> scenario. I didn't want to remove this useful sanity check just for this
> rare case.
...

Note that this represents a case where the default "just guess" behavior
would actually result in the worst possible outcome: a crash that only
occurs on transition days.

Carl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20150825/e6255a55/attachment.sig>


More information about the Datetime-SIG mailing list