Issue 1234956: Tutorial Section 6.3 example wrong (original) (raw)

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)