Tuesday 17 July 2018

Python issubclass and isinstance Methods

Python provides two built-in functions—issubclass and isinstance— that enable us to determine whether one class is derived from another class and whether a value is an object of a particular class or of a subclass of that class.

No comments:

Post a Comment