[issue22183] datetime.timezone methods require datetime object

2014-08-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: As David explained, utcoffset() method signature is dictated by the base class. This is not a bug. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue22183] datetime.timezone methods require datetime object

2014-08-11 Thread R. David Murray
R. David Murray added the comment: A timezone is a particular implementation of the general tzinfo API, and in the general case the datetime argument *is* required. This is already documented (ie: that timezone is a concrete implementation of tzinfo, and that the tzinfo API requires the datet

[issue22183] datetime.timezone methods require datetime object

2014-08-11 Thread Patrick Westerhoff
New submission from Patrick Westerhoff: I’ve noticed that the methods in `datetime.timezone` all require a datetime object (or explicitely `None`) as its parameter or they will raise an exception. The datetime object however is never required for the implementation of the method, so it seems t