Get frame object of last called function

  • Thread starter moerchendiser2k3
  • Start date
M

moerchendiser2k3

Hi, is there any chance to get the frame object of the previous called
function?
I just find the 'f_back' frame object but this is the frame object of
the parent function,
not the previous one.

I try to get the line number of the exit point of the previous
function.


(0) def Test():
(1) print "OK"
(2) return "Foo"

p = Test()
#get the line number where Test() returned

Any ideas? Thanks a lot!

Bye, moerchendiser
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,234
Latest member
SkyeWeems

Latest Threads

Top