[ python-Bugs-1182614 ] dir() does not include _

SourceForge.net noreply at sourceforge.net
Sat Apr 16 20:52:05 CEST 2005


Bugs item #1182614, was opened at 2005-04-13 18:21
Message generated for change (Settings changed) made by nickjacobson
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1182614&group_id=5470

Category: None
Group: Python 2.4
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Nick Jacobson (nickjacobson)
Assigned to: Nobody/Anonymous (nobody)
Summary: dir() does not include _

Initial Comment:
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']


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1182614&group_id=5470


More information about the Python-bugs-list mailing list