Raising objects

Steven Taschuk staschuk at telusplanet.net
Thu May 1 15:46:38 EDT 2003


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)?

-- 
Steven Taschuk             "The world will end if you get this wrong."
staschuk at telusplanet.net     -- "Typesetting Mathematics -- User's Guide",
                                 Brian Kernighan and Lorrinda Cherry





More information about the Python-list mailing list