Hi I'm trying to exclude a certain line of code if the function is called
by another function, see illustration below:
def funcA():
print "running from funcA" # print only if running from funcA
print "running from funcA or funcB" #print when running from either
function
print "running from funcB" # print only when running from funcB
def funcB():
funcA()
funcB()
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor