About 78,200 results
Open links in new tab
  1. Python isinstance () Function - W3Schools

    The isinstance() function returns True if the specified object is of the specified type, otherwise False. If the type parameter is a tuple, this function will return True if the object is one of the types in the tuple.

  2. isinstance () method - Python - GeeksforGeeks

    Jul 11, 2025 · isinstance () is a built-in Python function that checks whether an object or variable is an instance of a specified type or class (or a tuple of classes), returning True if it matches and False …

  3. isinstance() | Python’s Built-in Functions – Real Python

    The built-in isinstance() function checks if an object is an instance of a specified class or a subclass thereof, returning a Boolean value. It’s a versatile tool for explicit type checking in Python, as it …

  4. Built-in Functions — Python 3.11.15 documentation

    The isinstance() built-in function is recommended for testing the type of an object, because it takes subclasses into account. With three arguments, return a new type object. This is essentially a …

  5. Python isinstance () 函数 | 菜鸟教程

    Python isinstance () 函数 Python 内置函数 描述 isinstance () 函数来判断一个对象是否是一个已知的类型,类似 type ()。 isinstance () 与 type () 区别: type () 不会认为子类是一种父类类型,不考虑继承关 …

  6. How to Use isinstance () and issubclass () Functions

    Apr 30, 2026 · Learn how to use Python's isinstance() and issubclass() functions with practical examples. Master type checking and class hierarchies for robust Python code.

  7. What are the differences between type() and isinstance()?

    Generally speaking isinstance is a 'more' elegant way of checking if an object is of a certain "type" (since you are aware of the Inheritance chain). On the other hand, if you are not aware of the inheritance …

  8. Python isinstance () - Programiz

    In this tutorial, we will learn about the Python isinstance () function with the help of examples.

  9. Mastering `isinstance ()` in Python: A Comprehensive Guide

    Jan 16, 2026 · The isinstance() function is a built-in Python function that allows you to check if an object is an instance of a specified class or a tuple of classes. This blog post will provide a detailed …

  10. Python | Built-in Functions | isinstance () | Codecademy

    Apr 2, 2023 · In Python, the isinstance() function checks whether an object is an instance of a specified type, class, or a tuple of classes. If it is, the function returns True, otherwise it returns False. This …