global namescape of multilevel hierarchy

Sakcee sakcee at
Tue Mar 14 01:08:07 CET 2006


I have a script e.g.

import package.module

ID = "55"


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


More information about the Python-list mailing list