List of declared variables in interactive Python session?

Bruno Desthuilliers bdesth.nospam at
Sat Jul 19 18:26:46 CEST 2003

Fredrik Fornwall wrote:
> Hello.
> Is there a way to list all the declared variables in an interactive 
> Python session?

I'm not sure this is exactly what you're looking for, but you could try 
with dir() or globals().


More information about the Python-list mailing list