List of declared variables in interactive Python session?

Bruno Desthuilliers bdesth.nospam at removeme.free.fr
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().

HTH
Bruno





More information about the Python-list mailing list