Mark Dickinson <dicki...@gmail.com> added the comment: Also, it would be good to add a test or two for non-integers, e.g. to make explicit that the following behaviour hasn't changed:
>>> class C: ... def __int__(self): return 3 ... def __index__(self): return 5 ... def __eq__(self, other): return other == 4 ... >>> C() in range(0, 10, 2) True ---------- assignee: -> mark.dickinson _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1766304> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com