Greg Ewing wrote:
> Jim Jewett wrote:
>> it even clears up the pathological
>> case of an object which is both a subclass and an instance of
>> BaseException.
> 
> Is that possible???

Strange but true (Python 2.4):

 >>> class DumbMeta(type, Exception): pass
...
 >>> class WTF(object, Exception):
...     __metaclass__ = DumbMeta
...
 >>> isinstance(WTF, Exception)
True
 >>> issubclass(WTF, Exception)
True

Cheers,
Nick.

-- 
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to