First line once Python 2.7 interpreter is started on Windows:
>>> dir()
['__builtins__', '__doc__', '__name__', '__package__']
Having entered the dir()
command, the special variable _
should be defined:
>>> _
['__builtins__', '__doc__', '__name__', '__package__']
But, even after entering _
, it does not show up when I attempt to list all names in the interactive namespace using dir()
:
>>> dir()
['__builtins__', '__doc__', '__name__', '__package__']
How does the interpreter recognize this variable if it is not in the interpreter's namespace?