Commit 22d6bb8e authored by Michael W. Hudson's avatar Michael W. Hudson

Fix

[ python-Bugs-1190599 ] dir() docs show incorrect output

though not entirely how it's suggested in the bug report.
parent e99112c3
......@@ -2637,10 +2637,10 @@ currently:
\begin{verbatim}
>>> a = [1, 2, 3, 4, 5]
>>> import fibo, sys
>>> import fibo
>>> fib = fibo.fib
>>> dir()
['__builtins__', '__doc__', '__file__', '__name__', 'fib', 'fib2']
['__builtins__', '__doc__', '__file__', '__name__', 'a', 'fib']
\end{verbatim}
Note that it lists all types of names: variables, modules, functions, etc.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment