homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nascheme
Recipients
Date 2001年09月25日.22:42:34
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The built-in isinstance function is still broken when
used on extension classes. For example:
>>> from ExtensionClass import Base
>>> class Super:
... pass
... 
>>> isinstance(Super(), Base)
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
TypeError: isinstance() arg 2 must be a class or type
isinstance() should allow any object as the first
argument and a class, a type, or something with a
__bases__ tuple attribute for the second argument.
History
Date User Action Args
2007年08月23日 15:08:05adminlinkissue464992 messages
2007年08月23日 15:08:05admincreate

AltStyle によって変換されたページ (->オリジナル) /