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? Carl
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Datetime-SIG mailing list [email protected] https://mail.python.org/mailman/listinfo/datetime-sig The PSF Code of Conduct applies to this mailing list: https://www.python.org/psf/codeofconduct/
