[Bug 791221] Re: Nova's test suite fails with python 2.7.2rc1
Benjamin Peterson
benjamin at python.org
Fri Jun 3 20:59:44 UTC 2011
This is what you actually get on 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__']
So __dir__ was actually completely broken on old-style classes in 2.7.1.
You're only seeing the behavior it would have had if __dir__ worked.
--
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
More information about the Ubuntu-server-bugs
mailing list