Eric Snow <ericsnowcurren...@gmail.com> added the comment: In 2.7 I get the following (if Y does not inherit from object):
>>> print('res:', 1 in y) ('X contains:', 1) ('res:', False) This makes sense with old style classes. With Y(object): >>> print('res:', 1 in y) Y iter ('res:', True) ---------- nosy: +ericsnow _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11988> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com