Listing variables

vsoler vicente.soler at
Sun Oct 25 11:40:55 CET 2009

Say that a have:

# file

At the prompt:
import test

I would like to see the variables created in the test namespace.
However, variable "a" does not appear in the list, only "test". Since
I know that var "a" is reachable from the prompt by means of test.a,
how can I list this sort of variables?

Vicente Soler

More information about the Python-list mailing list