I think this one is even simpler to illustrate the change:

class Foo:
    def __dir__(self):
        return ['a', 'b', 'c']

class Bar:
    def __dir__(self):
        return ('a', 'b', 'c')

print dir(Foo())
print dir(Bar())

AFAICT, in Python 2.7.1 you get two lines of ['a', 'b', 'c'] while in
2.7.2rc2, the second line gives you the TypeError.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/791221

Title:
  Nova's test suite fails with python 2.7.2rc1

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to