[ python-Bugs-1219448 ] small output bug

SourceForge.net noreply at sourceforge.net
Mon Jun 13 04:56:38 CEST 2005


Bugs item #1219448, was opened at 2005-06-12 19:56
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=1219448&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: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Alex Levchuk (alevchuk)
Assigned to: Nobody/Anonymous (nobody)
Summary: small output bug

Initial Comment:
6.3 The dir() Function 
<http://docs.python.org/tut/node8.html>
contains a bug:

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


here last line should be
['__builtins__', '__doc__', '__name__', 'a', 'fib',
'fibo', 'sys']


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

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


More information about the Python-bugs-list mailing list