[issue5516] equality not symmetric for subclasses of datetime.date and datetime.datetime

Jess Austin report at bugs.python.org
Mon Mar 23 21:20:53 CET 2009


Jess Austin <jess.austin at gmail.com> added the comment:

The attached patch fixes this issue, and updates the tests.  Contrary to
my initial impression, it seems that a previous developer knew of this
behavior and thought it correct; see the comment of the test I deleted.
 I left memcmp() in.

----------
keywords: +patch
Added file: http://bugs.python.org/file13403/issue5516.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5516>
_______________________________________


More information about the Python-bugs-list mailing list