Re: How override ALL function calls? (Is there a "function call function"?)
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: How override ALL function calls? (Is there a "function call function"?)

From: Martin v. Löwis <martin@v.loewis.de>
Date: Sun Jul 31 2005 - 21:10:17 CEST

seberino@spawar.navy.mil wrote:
> I'm trying run a homegrown profiler on some Python code.
>
> Rather than apply profiler wrapper to ALL functions by hand....
>
> Is there a low level Python function I can override to modify
>
> how ALL functions are called?

Yes, please take a look at sys.setprofile().

Regards,
Martin
Received on Thu Sep 29 17:17:53 2005