What are new-style classes?
Steve Holden
steve at holdenweb.com
Wed Aug 31 13:02:36 EDT 2005
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 :-)
not-talking-about-the-war-ly y'rs - steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
More information about the Python-list
mailing list