knowing the caller of an import && exec question

bussiere bussiere bussiere at
Tue Sep 7 16:31:34 CEST 2010

i've got :

import titi
def niwhom():

and :

def nipang():

how can i know in that's it's that is calling
and the path of toto ?


why : :
class bidetmusique:
         pass :
X = __import__("bidule")

why exec("X.bidetmusique()") return none
and X.bidetmusique() return an object ?

How could i do to make this string "X.bidetmusique()" return an object ?

Regards and thanks
Eat the strawberry

Google Fan boy

More information about the Python-list mailing list