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/2008-February/076906.html below:

[Python-Dev] dir() and __all__

[Python-Dev] dir() and __all__Guido van Rossum guido at python.org
Sat Feb 16 02:48:47 CET 2008
It's not consistent with what dir() of a class or instance does though.

-1.

On Fri, Feb 15, 2008 at 5:30 PM, Raymond Hettinger <python at rcn.com> wrote:
> Should dir(module) use __all__ when defined?
>
>  >>> dir(Queue)
>  ['Empty', 'Full', 'LifoQueue', 'PriorityQueue', 'Queue', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '_time', 'deque', 'heapq']
>
>  >>> Queue.__all__
>  ['Empty', 'Full', 'Queue', 'PriorityQueue', 'LifoQueue']
>
>  I like the second one better.
>
>
>  Raymond
>  _______________________________________________
>  Python-Dev mailing list
>  Python-Dev at python.org
>  http://mail.python.org/mailman/listinfo/python-dev
>  Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org
>



-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
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