[Datetime-SIG] PEP-495 - Strict Invalid Time Checking
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: OpenPGP digital signature
More information about the Datetime-SIG