On 08/18/2015 12:16 PM, Alexander Belopolsky wrote: > > On Tue, Aug 18, 2015 at 1:35 PM, Carl Meyer <[email protected] > <mailto:[email protected]>> wrote: > > 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. > > > I thought about this and my answer is that a "gap" is a negative "fold", > so in the fold you have t.replace(fold=True) - t.replace(fold=False) > 0 > and in the gap - the opposite t.replace(fold=True) - > t.replace(fold=False) < 0. While admittedly, this is an a posteriori > justification, it makes perfect sense to me.
That's lovely :-) But I still think I could figure out whether to use later=True or later=False more easily than I could figure out whether to use fold=True or fold=False (in both cases really, but especially in the gap case). 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/
