global namescape of multilevel hierarchy

Sakcee sakcee at gmail.com
Tue Mar 14 01:08:07 CET 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