A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-September/128575.html below:

[Python-Dev] importance of dir

[Python-Dev] importance of dir [Python-Dev] importance of dirEthan Furman ethan at stoneleaf.us
Wed Sep 11 16:04:17 CEST 2013
http://docs.python.org/3/library/functions.html#dir:
>
> Note:  Because dir() is supplied primarily as a convenience for
>  use at an interactive prompt [...]

I suspect this comment is out of date, as there are two functions in the inspect module that rely on dir(), which also 
means that help indirectly relies on dir().  And we also now have the __dir__ method that we can use to customize what 
gets returned.

> [...] more than it tries to supply a rigorously or consistently
> defined set of names, [...]

If this is still true, should inspect be relying on dir()?

--
~Ethan~
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4