This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: dir() does not include _
Type: Stage:
Components: None Versions: Python 2.4
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: nickjacobson
Priority: normal Keywords:

Created on 2005-04-13 23:21 by nickjacobson, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (1)
msg25009 - (view) Author: Nick Jacobson (nickjacobson) Date: 2005-04-13 23:21
At the interpreter prompt, dir() does not include the
variable _

>>> dir()
['__builtins__', '__doc__', '__name__']
>>> x = 5
>>> dir()
['__builtins__', '__doc__', '__name__', 'x']
>>> _
['__builtins__', '__doc__', '__name__', 'x']
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41855
2005-04-13 23:21:32nickjacobsoncreate