[ python-Bugs-1234956 ] Tutorial Section 6.3 example wrong

SourceForge.net noreply at sourceforge.net
Fri Jul 8 22:36:37 CEST 2005


Bugs item #1234956, was opened at 2005-07-08 20:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1234956&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Phoebus Chen (phoebusc)
Assigned to: Nobody/Anonymous (nobody)
Summary: Tutorial Section 6.3 example wrong

Initial Comment:
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)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1234956&group_id=5470


More information about the Python-bugs-list mailing list