On Tue, Sep 1, 2015 at 11:59 AM, Alexander Belopolsky < [email protected]> wrote:
> Third observation: If we have only one variable offset timezone (Local), > then we can solve the problem by defining datetime.__hash__(self) as for > example, hash(self.astimezone(Local).replace(fold=0) - datetime(1, 1, 1, > tzinfo=Local)). > Note that given classic arithmetic, .replace(fold=0) is redundant.
_______________________________________________ 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/
