[issue2267] datetime.datetime operator methods are not subclass-friendly
Brett Cannon
report at bugs.python.org
Thu Jun 17 22:30:57 CEST 2010
Brett Cannon <brett at python.org> added the comment:
There is a difference between methods and overridden operators (slightly) in terms of cognitive understanding. I mean creating a new instance from a timestamp seems like an operation on the object by the object. Addition, though, seems like a creation of a new object by the two objects working together, which suggests contravariance.
Best I can think of. Otherwise ask on python-dev since Guido called the operator overriding expectation.
----------
nosy: +brett.cannon
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2267>
_______________________________________
More information about the Python-bugs-list
mailing list