Skip to content
New issue

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

dir() docs show incorrect output #41909

Closed
stillflame mannequin opened this issue Apr 26, 2005 · 4 comments
Closed

dir() docs show incorrect output #41909

stillflame mannequin opened this issue Apr 26, 2005 · 4 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@stillflame
Copy link
Mannequin

stillflame mannequin commented Apr 26, 2005

BPO 1190599
Nosy @mwhudson

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:

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 = []

@stillflame
Copy link
Mannequin Author

stillflame mannequin commented Apr 26, 2005

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'.

@stillflame stillflame mannequin closed this as completed Apr 26, 2005
@stillflame stillflame mannequin assigned mwhudson Apr 26, 2005
@stillflame stillflame mannequin added the docs Documentation in the Doc dir label Apr 26, 2005
@stillflame stillflame mannequin closed this as completed Apr 26, 2005
@stillflame stillflame mannequin assigned mwhudson Apr 26, 2005
@stillflame stillflame mannequin added the docs Documentation in the Doc dir label Apr 26, 2005
@quiver
Copy link
Mannequin

quiver mannequin commented Apr 27, 2005

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']

@mwhudson
Copy link

Logged In: YES
user_id=6656

Fixed in rev 1.270 of Doc/tut.tex.

Thanks for the report!

@quiver
Copy link
Mannequin

quiver mannequin commented May 1, 2005

Logged In: YES
user_id=671362

-['__builtins__', '__doc__', '__file__', '__name__', 'fib', 'fib2']
+['__builtins__', '__doc__', '__file__', '__name__', 'a', 'fib']

So, where is 'fibo'?

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant