list active variables

Steven D'Aprano steven at
Thu Apr 30 02:13:00 CEST 2009

On Wed, 29 Apr 2009 12:25:46 -0700, Iamanalien wrote:

> Hi,
> how can i list all the variables that i am using?

You can't.

What you can do though is list all the available names that Python knows 
about, whether you are using them or not, by using the dir() or vars() 


More information about the Python-list mailing list