Daniel Stutzbach <dan...@stutzbachenterprises.com> added the comment:
Here's a patch that adds test cases. It exercises all of the following special methods on Set and Mapping to ensure that they return NotImplemented if they don't recognize the other type. lt, gt, le, ge, eq, ne, or, and, xor, sub I made the patch against the py3k branch. I made the test-case patch separate to make it easier to see the before and after behavior of the actual fix. ---------- Added file: http://bugs.python.org/file17392/eq-test.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8729> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com