In article <[email protected]>,
Steven D'Aprano  <[email protected]> wrote:
>On Wed, 29 Apr 2009 12:25:46 -0700, Iamanalien wrote:
>> 
>> 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.

You can also get a complete list of Python container objects with
gc.get_objects(); however, that does not show you strings and ints that
aren't in container objects.  Still, that gets you most of it.
-- 
Aahz ([email protected])           <*>         http://www.pythoncraft.com/

"If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur."  --Red Adair
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to