[issue2153] unittest.py modernization
Christian Heimes
report at bugs.python.org
Thu Feb 21 21:05:15 CET 2008
Christian Heimes added the comment:
All changes are looking fine to me but I haven't looked at the patch so far.
"__metaclass__ = type" is easier to write than subclassing from object.
Both are equivalent.
>>> __metaclass__ = type
>>> class Foo: pass
...
>>> Foo
<class '__main__.Foo'>
>>> Foo.__bases__
(<type 'object'>,)
>>> type(Foo)
<type 'type'>
----------
nosy: +tiran
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2153>
__________________________________
More information about the Python-bugs-list
mailing list