"Eli Brosh" <[EMAIL PROTECTED]> wrote 

> Now, I want to know which variables are in my workspace.

Try dir()

That should give you the names in the current namespace.
You will see some names you didn't define too.

dir()is a really helpful command when you want to see whats possible.

>>> dir('')

Will list all the methods of a string for example.

>>> import math
>>> dir(math)

will list all the math functions and constants.

HTH,

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld



_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to