Web Reference: 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 and instance attributes. 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 objects during development and debugging. 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 properties which are default for all object.
YouTube Excerpt: Learn how to use
Information Profile Overview
Dir Function In Python Python - Latest Information & Updates 2026 Information & Biography

Details: $50M - $94M
Salary & Income Sources

Career Highlights & Achievements

Assets, Properties & Investments
This section covers known assets, real estate holdings, luxury vehicles, and investment portfolios. Data is compiled from public records, financial disclosures, and verified media reports.
Last Updated: April 6, 2026
Information Outlook & Future Earnings

Disclaimer: Disclaimer: Information provided here is based on publicly available data, media reports, and online sources. Actual details may vary.


![Famous Python #97 - The dir Function [By Mosh Hamedani] Net Worth](https://i.ytimg.com/vi/5rlP3DsnThA/mqdefault.jpg)





