Re: What are new-style classes?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: What are new-style classes?

From: Reinhold Birkenfeld <reinhold-birkenfeld-nospam@wolke7.net>
Date: Wed Aug 31 2005 - 19:14:06 CEST

Steve Holden wrote:
> Reinhold Birkenfeld wrote:
>> Terry Hancock wrote:
>>
>>>On Tuesday 30 August 2005 04:09 pm, Reinhold Birkenfeld wrote:
>>>
>>>>The customary way is to use "class new_class(object):". There's no advantage in using
>>>>__metaclass__ except that you can set it globally for all classes in that module
>>>>(which can be confusing on its own).
>>>>
>>>>My comment mostly referred to "new-style classes must be declared as a subclass of
>>>>a new-style class", which is not true.
>>>
>>>Nonsense.
>>
>>
>> Given the rest of your post, I assume that this isn't meant as it sounds. Remember, I'm
>> German, so please bear with my sense of humour. ;)
>>
> German? Humour? Surely some mistake :-)

Hm, should have added "if any" above...

> not-talking-about-the-war-ly y'rs - steve

No surprise it was the Brits who discovered the world's deadliest joke.

Reinhold
Received on Thu Sep 29 18:10:18 2005