Creating "virtual" module-namespace

Simon simon.12.ghum at spamgourmet.com
Thu Dec 12 02:08:47 EST 2002


Erik, thank you for your thoughts, but

>> exec a in b
>> grail=b.nasenbaer()

> You want a separate dictionary:
>      myGlobals = {}
>      exec statment in myGlobals

than I have to call

c=myGlobals["nasenbaer"]()

that is not exactly my Objective...



More information about the Python-list mailing list