Re: Type feedback tool?

2008-10-27 Thread M.-A. Lemburg
On 2008-10-26 13:54, Martin Vilcans wrote: Hi list, I'm wondering if there's a tool that can analyze a Python program while it runs, and generate a database with the types of arguments and return values for each function. In a way it is like a profiler, that instead of measuring how often

Re: Type feedback tool?

2008-10-27 Thread skip
(Sorry for any repeated recommendations. I'm offline until Monday morning. You may well see some of these suggestions in the meanwhile, but so far it seems you've had no nibbles.) Martin I'm wondering if there's a tool that can analyze a Python Martin program while it runs, and generate

Re: Type feedback tool?

2008-10-27 Thread Orestis Markou
I think that rope has something like that; not really sure though. On Mon, Oct 27, 2008 at 1:41 AM, [EMAIL PROTECTED] wrote: (Sorry for any repeated recommendations. I'm offline until Monday morning. You may well see some of these suggestions in the meanwhile, but so far it seems you've had

Re: Type feedback tool?

2008-10-27 Thread Martin Vilcans
Thanks everyone for the suggestions. I've implemented a simple solution using sys.settrace. It's quite nice because it doesn't require any instrumentation of the code (it works like a debugger that traps all function calls). Here's the output I get right now when profiling Skip's example code

Type feedback tool?

2008-10-26 Thread Martin Vilcans
Hi list, I'm wondering if there's a tool that can analyze a Python program while it runs, and generate a database with the types of arguments and return values for each function. In a way it is like a profiler, that instead of measuring how often functions are called and how long time it takes,

Re: Type feedback tool?

2008-10-26 Thread Scott David Daniels
Martin Vilcans wrote: Hi list, I'm wondering if there's a tool that can analyze a Python program while it runs, and generate a database with the types of arguments and return values for each function. In a way it is like a profiler, that instead of measuring how often functions are called and