Skip to content

Glossary: Python Beyond the Basics

isinstance

Also written: isinstance()

A built-in function that checks whether an object is an instance of a class, including parent classes. `isinstance(promo, GiftCard)` is True.

Where the book teaches it

Related terms

inheritanceNotImplemented