I want to see all the variables

wittempj@hotmail.com martin.witte at gmail.com
Fri Dec 29 10:57:30 EST 2006


What do you mean? Can you specify which special functions you don't
see?
I get:
py> class X:
	pass
py> dir(X)
['__doc__', '__module__']
py> class X:
	def __getitem__(self, x):
		pass


py> dir(X)
['__doc__', '__getitem__', '__module__']

On Dec 29, 12:35 pm, johnf <jfabi... at yolo.com> wrote:
> Hi,
> When I use dir() I don't see the __ underscore items.  Is there anything
> that will show all the private vars and functions?
> 
> johnf




More information about the Python-list mailing list