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 stingray
Recipients stingray
Date 2008-03-10.19:09:50
SpamBayes Score 0.19182703
Marked as misclassified No
Message-id <1205176194.96.0.747568659994.issue2267@psf.upfronthosting.co.za>
In-reply-to
Content
The datetime.datetime class overrides some arithmetic operations for it
to be able to add or subtract timedeltas. However, the result of A + B
operation, where A is instance of a subclass of datetime and B is
timedelta instance will be always the instance of base datetime.

This is extremely annoying and requires to override arithmetic operators
and writing a lots of rubbish to replace the datetime base object with
type(self)
History
Date User Action Args
2008-03-10 19:09:55stingraysetspambayes_score: 0.191827 -> 0.19182703
recipients: + stingray
2008-03-10 19:09:55stingraysetspambayes_score: 0.191827 -> 0.191827
messageid: <1205176194.96.0.747568659994.issue2267@psf.upfronthosting.co.za>
2008-03-10 19:09:50stingraylinkissue2267 messages
2008-03-10 19:09:50stingraycreate