About 366,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 …

  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 …

  3. Python dir () Function - W3Schools

    Definition and Usage 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 …

    Missing:
    • define
    Must include:
  4. The dir() Function in Python: A Complete Guide (with Examples)

    In Python, the dir() function returns a list of the attributes and methods that belong to an object. This can be useful for exploring and discovering the capabilities of an object, as well as for …

  5. Python dir () built-in function - Python Cheatsheet

    With an argument, attempt to return a list of valid attributes for that object. The dir() function in Python is a powerful built-in function that returns a list of names in the current namespace or …

  6. Understanding the Python dir () Function: A Detailed Guide

    Dec 27, 2023 · The dir () function is a built-in tool in Python that enables easy introspection of objects. By calling dir () on different objects, you can view what attributes and methods they …

  7. Python dir () - Programiz

    The dir () method tries to return a list of valid attributes of the object. In this tutorial, you will learn about the Python dir () method with the help of examples.

  8. 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 …

  9. 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 …

  10. 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.