• Tim Peters's avatar
    A quicker astimezone() implementation, rehabilitating an earlier · f3615155
    Tim Peters yazdı
    suggestion from Guido, along with a formal correctness proof of the
    trickiest bit.  The intricacy of the proof reveals how delicate this
    is, but also how robust the conclusion:  correctness doesn't rely on
    dst() returning +- one hour (not all real time zones do!), it only
    relies on:
    
    1. That dst() returns a (any) non-zero value if and only if daylight
       time is in effect.
    
    and
    
    2. That the tzinfo subclass implements a consistent notion of time zone.
    
    The meaning of "consistent" was a hidden assumption, which is now an
    explicit requirement in the docs.  Alas, it's an unverifiable (by the
    datetime implementation) requirement, but so it goes.
    f3615155
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...