global namescape of multilevel hierarchy

Sakcee sakcee at gmail.com
Mon Mar 13 19:08:07 EST 2006


Hi

I have a script e.g.

import package.module

ID = "55"

package.module.checkID()



now in package.module.checkID function, i wnat to know what is the ID
defiend in the calling scriipt


if I dot globals(), it returns only items in module.   is there a way
to get the script level namesapce


thanks




More information about the Python-list mailing list