Raising objects

Aahz aahz at pythoncraft.com
Thu May 1 19:54:03 EDT 2003


In article <mailman.1051818078.23819.python-list at python.org>,
Steven Taschuk  <staschuk at telusplanet.net> wrote:
>Quoth Aahz:
>>
>> This is another reason why new-style classes can't be accepted yet:
>> there's no reliable way to tell the distinction between class and
>> instance.
>
>isinstance(x, type)?

But that doesn't tell you whether x is a class.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"In many ways, it's a dull language, borrowing solid old concepts from
many other languages & styles:  boring syntax, unsurprising semantics,
few automatic coercions, etc etc.  But that's one of the things I like
about it."  --Tim Peters on Python, 16 Sep 93




More information about the Python-list mailing list