[issue12248] __dir__ semantics changed in Python 2.7.2

Barry A. Warsaw report at bugs.python.org
Thu Jun 9 21:48:24 CEST 2011


Barry A. Warsaw <barry at python.org> added the comment:

Raymond, I like your patch and I think it addresses the issue nicely.  I made one small change, which is to add a test for non-list-sequenceness instead of changing the existing __dir__is_list test.  I think both tests are useful to keep.

Benjamin, what do you think about this for 2.7.2?

----------
Added file: http://bugs.python.org/file22302/12248.diff

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


More information about the Python-bugs-list mailing list