Re: Why new Python 2.5 feature "class C()" return old-style class ?
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: Why new Python 2.5 feature "class C()" return old-style class ?

From: Aahz <aahz@pythoncraft.com>
Date: Mon Apr 17 2006 - 22:03:14 CEST

In article <1hdwol0.luxoeathwi1cN%aleaxit@yahoo.com>,
Alex Martelli <aleaxit@yahoo.com> wrote:
>Aahz <aahz@pythoncraft.com> wrote:
>>
>> Method resolution order is the primary up-front difference, but
>> introspective code can also have problems.
>
>The crucial difference between the old-style classes and the new ones
>is about how Python lookups special methods.

Right. Thanks! I don't actually use new-style classes much myself, so
I forgot about that one. (And I needed it for the draft that's due
today...)

-- 
Aahz (aahz@pythoncraft.com)           <*>         http://www.pythoncraft.com/
"LL YR VWL R BLNG T S"
Received on Sun Apr 30 23:25:47 2006