Kent Johnson schrieb: > [EMAIL PROTECTED] wrote: >> Hello Tutor! >> >> I am building a couple of scripts to manage a database for our >> company. The projects name is 'dgf'. As a lot of the functionality is >> used in more than one of these scripts, I moved this functionality to >> a module (dgf.py). It has several functions now. >> >> Question: Is there an easy way to determine inside dgf.py where the >> function call came from? > > Why do you need to do this? It sounds like a design change is needed. > Anyway the answer to your question is yes. This recipe should point you > in the right direction: > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66062 > > Kent >
First, thanks for the link. I want this functionality mainly because it seems like a quick way to accomplish my goals for the project (I'm in a hurry to get this finished). As I advance more in Python, a design change might happen :) _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
