[issue13666] datetime documentation typos
Terry J. Reedy
report at bugs.python.org
Fri Dec 30 22:29:24 CET 2011
Terry J. Reedy <tjreedy at udel.edu> added the comment:
2.6 only gets security updates.
I verified 'rzinfo' typo in x.1.6 in 2.7 and 3.2. Also in both, tzinfo.utcoffset begins as Stephen claims. I have not verified that this is error.
Also in both, in x.1.4, class GMT1 has
... def utcoffset(self, dt):
... return timedelta(hours=1) + self.dst(dt)
... def dst(self, dt):
... if self.dston <= dt.replace(tzinfo=None) < self.dstoff:
... return timedelta(hours=1)
... else:
... return timedelta(0)
while GMT2 has
... def utcoffset(self, dt):
... return timedelta(hours=1) + self.dst(dt)
... def dst(self, dt):
... if self.dston <= dt.replace(tzinfo=None) < self.dstoff:
... return timedelta(hours=2)
... else:
... return timedelta(0)
Stephen is saying that 'hours=1' should here be 'hours=2'. Should '0' by 'hours=1' to be just 1 off from 2?
----------
nosy: +belopolsky, terry.reedy
stage: -> needs patch
versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13666>
_______________________________________
More information about the Python-bugs-list
mailing list