[Python-Dev] Default metaclass in Python 3.0 modules (was: PEP: Consolidating names and classes in the `unittest` module (updated 2008-07-15))

Benjamin Peterson musiccomposition at gmail.com
Tue Jul 15 15:43:58 CEST 2008


On Tue, Jul 15, 2008 at 5:04 AM, Ben Finney <ben+python at benfinney.id.au> wrote:
> "Benjamin Peterson" <musiccomposition at gmail.com> writes:
>>
>> Line 94-95 in unittest.py (trunk):
>> # All classes defined herein are 'new-style' classes, allowing use of 'super()'
>> __metaclass__ = type
>
> Hmm, you're right; I see that in Python 2.5.2 'unittest.py'.
>
> Why is it not there in 3.0's 'unittest.py'? Is this achieved some
> other way?

All classes are new-style classes in 3.0!




-- 
Cheers,
Benjamin Peterson
"There's no place like 127.0.0.1."


More information about the Python-Dev mailing list