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

    Nov 29, 2023 · In Python, the dir() function is a built-in function used to list the attributes (methods, properties, and other members) of an object. In this article we will see about dir () function in Python. Syntax: dir ( {object}) Parameters : object [optional] : Takes object name.

  2. Python dir() Function - W3Schools

    Display the content of an object: 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 object. Built-in Functions. Track your progress - it's free!

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

    The built-in dir() function lists the names in the current local scope when you call it without arguments. When you call it using an object as an argument, it attempts to return a list of valid attributes for that object:

  4. Python dir() - Programiz

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

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

    Dec 27, 2023 · What is the dir () Function in Python? The dir () function in Python returns a list of valid attributes for a specified object. The attributes include properties and methods – essentially anything that can be accessed on the object. Calling dir () with no arguments will return the names that live in the current scope.

  6. 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 debugging and testing.

  7. Python dir() Function - Online Tutorials Library

    Learn about the Python dir () function, its syntax, parameters, and practical examples to retrieve a list of attributes and methods of an object.

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

    The dir() function in Python is a powerful built-in function that returns a list of names in the current namespace or the attributes of a given object. It’s commonly used to introspect and explore objects, modules, and classes, helping you discover the available methods, attributes, and names that you can work with.

  9. Python dir() Builtin Function – Examples - Tutorial Kart

    Python dir () builtin function returns the list of names of attributes for a given object. If no object is given as argument, then dir () returns the list of names in the current local scope.

  10. Learn Python dir () Function from basics to Advance

    Python dir() is a potent built-in function that provides a comprehensive view of the attributes, methods, and functionalities of any object. It allows you to peek inside an object and see what it’s made of, making it an invaluable resource for you and other developers.

  11. Some results have been removed