[ python-Bugs-1190599 ] dir() docs show incorrect output
SourceForge.net
noreply at sourceforge.net
Wed Apr 27 00:20:22 CEST 2005
Bugs item #1190599, was opened at 2005-04-26 16:20
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=1190599&group_id=5470
Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Martin Chase (stillflame)
Assigned to: Nobody/Anonymous (nobody)
Summary: dir() docs show incorrect output
Initial Comment:
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'.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1190599&group_id=5470
More information about the Python-bugs-list
mailing list