list active variables

Steven D'Aprano steven at REMOVE.THIS.cybersource.com.au
Wed Apr 29 20:13:00 EDT 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() 
functions.


-- 
Steven



More information about the Python-list mailing list