homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steveire
Recipients belopolsky, docs@python, steveire, terry.reedy, zacherates
Date 2012年01月26日.22:17:28
SpamBayes Score 0.00019697682
Marked as misclassified No
Message-id <1327616249.19.0.408812843319.issue13666@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012年01月26日 22:17:29steveiresetrecipients: + steveire, terry.reedy, belopolsky, docs@python, zacherates
2012年01月26日 22:17:29steveiresetmessageid: <1327616249.19.0.408812843319.issue13666@psf.upfronthosting.co.za>
2012年01月26日 22:17:28steveirelinkissue13666 messages
2012年01月26日 22:17:28steveirecreate

AltStyle によって変換されたページ (->オリジナル) /