This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Tutorial Section 6.3 example wrong
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, phoebusc
Priority: normal Keywords:

Created on 2005-07-08 20:36 by phoebusc, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg25765 - (view) Author: Phoebus Chen (phoebusc) Date: 2005-07-08 20:36
On page:
http://www.python.org/doc/2.4.1/tut/node8.html

Section 6.3

It has the example:
Without arguments, dir() lists the names you have
defined currently:

>>> a = [1, 2, 3, 4, 5]
>>> import fibo, sys
>>> fib = fibo.fib
>>> dir()
['__builtins__', '__doc__', '__file__', '__name__',
'fib', 'fib2']

These results for dir() are not correct (for example a
is not listed)
msg25766 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-07-08 21:29
Logged In: YES 
user_id=1188172

This has already been fixed in CVS.
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42174
2005-07-08 20:36:36phoebusccreate