[issue2267] datetime.datetime operator methods are not subclass-friendly
Alexander Belopolsky
report at bugs.python.org
Mon Mar 10 23:05:24 CET 2008
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
This is trivial to implement (see attached) and IMHO is a good idea.
The next question, however is whether similar changes should be made to
timedelta arithmetics. Timedelta case is not so clearcut because of the
usual dilemma of what the type of a+b should be when a and b are
instances of two different subclasses of timedelta.
----------
keywords: +patch
nosy: +belopolsky
Added file: http://bugs.python.org/file9651/datetime.diff
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2267>
__________________________________
More information about the Python-bugs-list
mailing list