Re: [Tutor] intercepting and recored I/O function calls

2010-09-21 Thread Jojo Mwebaze
I found this recipe quite related http://code.activestate.com/recipes/198078/ it logs all methods calls with their parameters and return values.. Can this be modified to include any other outputs of the module, which are not specified with the return statement. cheers On Fri, Sep 17, 2010 at

Re: [Tutor] intercepting and recored I/O function calls

2010-09-17 Thread Alan Gauld
"Jojo Mwebaze" wrote My applogies to begin with, it seems i didnt state my problem clearly for this particular case - perharps I/O was not the best way to describe my problem. Hmmm, perhaps not! :-) Specifically, i would like to track all inputs/output to modules/functions - if a module

Re: [Tutor] intercepting and recored I/O function calls

2010-09-17 Thread Martin A. Brown
Good morning Jojo, : Thanks Martin, for the detailed break down, it actually helped me : solve one of my other problems.. Quite glad to help. : My applogies to begin with, it seems i didnt state my problem : clearly for this particular case - perharps I/O was not the best : way to descr

Re: [Tutor] intercepting and recored I/O function calls

2010-09-17 Thread Jojo Mwebaze
Thanks Martin, for the detailed break down, it actually helped me solve one of my other problems.. My applogies to begin with, it seems i didnt state my problem clearly for this particular case - perharps I/O was not the best way to describe my problem. We have a system fully developed in python

Re: [Tutor] intercepting and recored I/O function calls

2010-09-16 Thread Martin A. Brown
[apologies in advance for an answer that is partially off topic] Hi there JoJo, : I could begin with tracing I/O calls in my App.. if its : sufficient enough i may not need i/o calls for the OS. What do you suspect? Filesystem I/O? * open(), close(), opendir() closedir() filesystem laten

Re: [Tutor] intercepting and recored I/O function calls

2010-09-16 Thread Alan Gauld
"Jojo Mwebaze" wrote I am using centos, however i don't even have admin privileges. Which API are you referring to? The OS API - Win32 in Windows or the Unix standard library etc Alan G ___ Tutor maillist - Tutor@python.org To unsubscribe

Re: [Tutor] intercepting and recored I/O function calls

2010-09-16 Thread Jojo Mwebaze
On Wed, Sep 15, 2010 at 11:37 PM, Alan Gauld wrote: > > "Jojo Mwebaze" wrote > > > I would like to intercept and record I/O function calls to a file.. (later >> to a database) with probably the names of the files that have been >> created, >> accessed / deleted in my program. I have not done so

Re: [Tutor] intercepting and recored I/O function calls

2010-09-15 Thread Alan Gauld
"Jojo Mwebaze" wrote I would like to intercept and record I/O function calls to a file.. (later to a database) with probably the names of the files that have been created, accessed / deleted in my program. I have not done something like this before.. Some Guidance is highly appreciated A

[Tutor] intercepting and recored I/O function calls

2010-09-15 Thread Jojo Mwebaze
Hello Tutor I would like to intercept and record I/O function calls to a file.. (later to a database) with probably the names of the files that have been created, accessed / deleted in my program. I have not done something like this before.. Some Guidance is highly appreciated Johnson __