Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 How to intercept python method calls?
I have a python program running as process. I am looking for mechanism to intercept selected function in python program which is already running (at run time) and get the control of the function.
def function1():
   } catch(exception ex) {
Let's say, the above specified function is part of the python program running. I am looking for a mechanism using which I can instruct python to return the exception each time the function1 is called (irrespective of try condition).
I have come across parasite project which allows us to connect to running process and execute a code but, doesn't seem to help in controlling behavior of a method in the target process.


Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Python script that calls jamfHelper binary kennethdean2010 19 1,054 May-07-2019, 03:50 PM
Last Post: kennethdean2010
  Multiple calls to Python interpreter embedded in C++ application yield segmentation f mmoelle1 0 316 Mar-21-2019, 08:54 PM
Last Post: mmoelle1

Forum Jump:

Users browsing this thread: 1 Guest(s)