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 cool-RR
Recipients amaury.forgeotdarc, cool-RR
Date 2010-11-28.22:22:16
SpamBayes Score 3.783544e-05
Marked as misclassified No
Message-id <1290982940.03.0.614838221075.issue10569@psf.upfronthosting.co.za>
In-reply-to
Content
Amaury, I am aware of what `issubclass` does and what `isinstance` does. I am not manually feeding `[]` into `issubclass`. I have an object which can be either a list, or a string, or a callable, or a type. And I want to check whether it's a sub-class of some base class.

So I don't think I should be taking extra precautions before using `issubclass`: If my object is not a subclass of the given base class, I should just get `False`.
History
Date User Action Args
2010-11-28 22:22:20cool-RRsetrecipients: + cool-RR, amaury.forgeotdarc
2010-11-28 22:22:20cool-RRsetmessageid: <1290982940.03.0.614838221075.issue10569@psf.upfronthosting.co.za>
2010-11-28 22:22:16cool-RRlinkissue10569 messages
2010-11-28 22:22:16cool-RRcreate