[Datetime-SIG] PEP 495 (Local Time Disambiguation) is ready for pronouncement

Carl Meyer carl at oddbird.net
Tue Aug 18 19:35:06 CEST 2015

On 08/18/2015 11:19 AM, Ethan Furman wrote:
> Maybe 'repeat'?  Then `repeat = 0` is the default, and `repeat = 1` for
> the repeated time.

One problem with both `fold` and `repeat` is that this flag (per the
PEP) also influences resolution of "missing" times, in which case there
is no fold (there's a gap) and no time is repeated.

IMO the strongest candidate might be `later`. It's easy to figure out
which time it would mean in all cases, it applies reasonably to both the
"fold" and the "gap", and (unlike `first`) it defaults to False. I don't
really see the downside mentioned in the PEP (possible confusion with
`latter`) as a strong negative. There are plenty of other APIs in the
stdlib which could be mis-spelled; why is that a deal-breaker here?


-------------- 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/20150818/e4c5a261/attachment.sig>

More information about the Datetime-SIG mailing list