Why new Python 2.5 feature "class C()" return old-style class ?

Georg Brandl g.brandl-nospam at gmx.net
Tue Apr 11 07:38:06 EDT 2006


Peter Hansen wrote:
> Georg Brandl wrote:
>> class C():
>> 
>> is meant to be synonymous with
>> 
>> class C:
>> 
>> and therefore cannot create a new-style class.
> 
> I think "looping" understands that, but is basically asking why anyone 
> is bothering with a change that involves a part of the language that is 
> effectively deprecated.  In other words, class(): never used to be 
> valid, so why make it valid now?

I don't recall that, you'll have to search the python-dev archives.

Georg



More information about the Python-list mailing list