[docs] [issue13666] datetime documentation typos
Stephen Kelly
report at bugs.python.org
Thu Jan 26 23:17:29 CET 2012
Stephen Kelly <steveire at 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 - timedelta(days=d.weekday() + 1)
... d = datetime(dt.year, 11, 1)
... self.dstoff = d - timedelta(days=d.weekday() + 1)
where does dt come from? this fragment should be in the implementation of dst (in both the GMT1 and GMT2 classes.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13666>
_______________________________________
More information about the docs
mailing list