Benjamin Peterson <benja...@python.org> added the comment: No additional type-checking was added. The problem is that __dir__ didn't work on old-style classes at all in 2.7.1:
$ python Python 2.7.1 (r271:86832, Mar 24 2011, 22:44:47) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> class Foo: ... def __dir__(self): ... return ['a', 'b', 'c'] ... >>> class Bar: ... def __dir__(self): ... return ('a', 'b', 'c') ... >>> print dir(Foo()) ['__dir__', '__doc__', '__module__'] >>> print dir(Bar()) ['__dir__', '__doc__', '__module__'] Loosening type-checks on dir() is fine with me but is really a 3.3 issue. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12248> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com