About 181,000 results
Open links in new tab
  1. dir () function in Python - GeeksforGeeks

    Jul 11, 2025 · The dir () function is a built-in Python tool used to list the attributes (like methods, variables, etc.) of an object. It helps inspect modules, classes, functions, and even user-defined …

  2. dir () | Python’s Built-in Functions – Real Python

    Without an argument, dir() returns a list of names in the current local scope. With an object as an argument, it returns a list of attributes and methods of that object, which may include class attributes …

  3. Python dir () Function - W3Schools

    The dir() function returns all properties and methods of the specified object, without the values. This function will return all the properties and methods, even built-in properties which are default for all …

  4. Python dir () - Programiz

    In this tutorial, you will learn about the Python dir () method with the help of examples.

  5. Python dir () Function - Online Tutorials Library

    The Python dir () function lists out all the properties and methods, including the default properties of the specified object. Here, the object could be any module, function, string, list, dictionary, etc.

  6. The dir() Function in Python: A Complete Guide (with Examples)

    This is a comprehensive guide to understanding what is the dir() function in Python. You will learn how to call the function on any object and more importantly how to analyze the output.

  7. dir () in Python - Built-In Functions with Examples

    The dir() function in Python returns a list of valid attributes and methods for the specified object. It can be used without arguments to list the names in the current scope or with an object as an argument to …

  8. Python dir () Function – List Attributes of Objects

    Learn how to use Python's dir () function to list the attributes and methods of objects, modules, and classes. Includes examples and real-world use cases.

  9. Python dir () Function: Full Guide from Basics to Advanced

    Nov 29, 2025 · In this article, we will thoroughly explain Python’s dir() function, covering everything from basic usage to advanced examples and cautions. In development with Python, this function lets you …

  10. Python dir Function - Complete Guide - ZetCode

    Apr 11, 2025 · This comprehensive guide explores Python's dir function, which returns a list of valid attributes for an object. We'll cover basic usage, custom objects, and practical examples of object …