What is the best way to check whether a given object is of a given type? How about checking whether the object inherits from a given type?

Let’s say I have an object o. How do I check whether it’s a str?

1
14

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *