Hello
I want myfunction in the pseudocode below return something different if it was called from indexfunction.
def indexfunction():
blah
blah
def myfunction():
x = 'whatever'
if <myfunction was called from indexfunction>:
return x
else:
return <header> + x + <footer>
x = 'whatever'
if <myfunction was called from indexfunction>:
return x
else:
return <header> + x + <footer>
Thanks
Ben
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
