[ python-Bugs-1219448 ] small output bug

SourceForge.net noreply at sourceforge.net
Tue Jun 14 10:57:16 CEST 2005


Bugs item #1219448, was opened at 2005-06-12 21:56
Message generated for change (Settings changed) made by rhettinger
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: Closed
>Resolution: Fixed
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