We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
GitHub fields:
assignee = 'https://github.com/mwhudson' closed_at = <Date 2005-05-01.15:00:59.000> created_at = <Date 2005-04-26.22:20:22.000> labels = ['docs'] title = 'dir() docs show incorrect output' updated_at = <Date 2005-05-01.15:00:59.000> user = 'https://bugs.python.org/stillflame'
bugs.python.org fields:
activity = <Date 2005-05-01.15:00:59.000> actor = 'quiver' assignee = 'mwh' closed = True closed_date = None closer = None components = ['Documentation'] creation = <Date 2005-04-26.22:20:22.000> creator = 'stillflame' dependencies = [] files = [] hgrepos = [] issue_num = 1190599 keywords = [] message_count = 4.0 messages = ['25144', '25145', '25146', '25147'] nosy_count = 3.0 nosy_names = ['mwh', 'quiver', 'stillflame'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = None status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue1190599' versions = []
The text was updated successfully, but these errors were encountered:
on the web at http://docs.python.org/tut/node8.html
under "6.3 The dir() Function", the following text reports incorrectly what the dir() call would return:
>>> a = [1, 2, 3, 4, 5] >>> import fibo, sys >>> fib = fibo.fib >>> dir() ['__builtins__', '__doc__', '__file__', '__name__', 'fib', 'fib2']
it should have 'a' and 'fibo', but not 'fib2'.
Sorry, something went wrong.
Logged In: YES user_id=671362
A minor nit.
it should have 'a' and 'fibo', 'sys' is also missing from the list.
>>> dir() ['__builtins__', '__doc__', '__file__', '__name__', 'a', 'fib', 'fibo', ' sys']
Logged In: YES user_id=6656
Fixed in rev 1.270 of Doc/tut.tex.
Thanks for the report!
-['__builtins__', '__doc__', '__file__', '__name__', 'fib', 'fib2'] +['__builtins__', '__doc__', '__file__', '__name__', 'a', 'fib']
So, where is 'fibo'?
mwhudson
No branches or pull requests
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: