Listing variables
Dave Angel
davea at ieee.org
Sun Oct 25 07:29:00 EDT 2009
More information about the Python-list mailing list
Sun Oct 25 07:29:00 EDT 2009
- Previous message (by thread): Listing variables
- Next message (by thread): Listing variables
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
vsoler wrote: > Say that a have: > > # file test.py > a=7 > > > At the prompt: > import test > dir() > > 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 > > dir(test)
- Previous message (by thread): Listing variables
- Next message (by thread): Listing variables
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list