inspect: get the calling command

Hans Georg Krauthaeuser hgk at et.uni-magdeburg.de
Tue Jun 15 03:36:34 EDT 2004


Inyeol Lee wrote:
> It's an old bug. See Python bug [607092] at Sourceforge.
> 
> Inyeol
> 
Thanks for pointing me there. Resolution for this bug is 'Wont Fix'. So, 
did you have any idea how to work around that 'feature'. What I wanted 
to have is some kind of autosave functionality. I have a class doing 
some measurements which might take some days of time. At certain points, 
I want to pickle the class instance (this is working) to a file. If the 
measurement fails, e.g. due to a power main failure, I can recover from 
the pickle file. Now, I want also to save the command that issued the 
measurement in order to recover automatically with the right command.

BTW, are you sure that my problem is really due to that bug. I'm asking 
because one comment stated: '...You should also check out current CVS, 
seeing as there are no SET_LINENO instructions any more...'

Hans Georg



More information about the Python-list mailing list