Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset ec970793f390 by Senthil Kumaran in branch '3.2':
issue13666 - Fixing datetime documentation example when using tzinfo
http://hg.python.org/cpython/rev/ec970793f390
New changeset 98d40bd23381 by Senthil Kumaran in
Senthil Kumaran sent...@uthcode.com added the comment:
The docs are fixed now.
--
nosy: +orsenthil
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Stephen Kelly steve...@gmail.com added the comment:
There are actually other bugs in the same code example:
... def __init__(self): # DST starts last Sunday in March
... d = datetime(dt.year, 4, 1) # ends last Sunday in October
... self.dston = d -
Aaron Maenpaa aa...@maenpaa.ca added the comment:
This patch fixes the rzinfo typo as well as the GMT2 issue (GMT +2 should
behave exactly the same as GMT +1 with regards to DST, it's base offset should
simply be +2 hours instead of +1).
This does not; however, address the comment about the
Aaron Maenpaa aa...@maenpaa.ca added the comment:
Looks like the issue of the first line of utcoffsect was also raised in issue
8810.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13666
Stephen Kelly steve...@gmail.com added the comment:
Patch looks good to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13666
___
___
Terry J. Reedy tjre...@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
New submission from Stephen Kelly steve...@gmail.com:
There are several bugs on
http://docs.python.org/library/datetime.html
Section 8.1.6 references the method rzinfo.dst(), which does not exist.
Presumably this should be tzinfo.dst().
Section 8.1.4 contains an implementation of a GMT2