Jim Fulton <j...@zope.com> added the comment: On Mon, Jan 25, 2010 at 7:35 PM, Ezio Melotti <rep...@bugs.python.org> wrote: > > Ezio Melotti <ezio.melo...@gmail.com> added the comment: > > See also #7372. > > AFAIU add_callers can receive either a tuple or an int (and this is what is > not working now). When I looked at #7372 I wasn't able to find out why it > might receive two different objects and not always the same (i.e. always a > tuple, possibly with only one int). From the first message it seems that > cProfile returns the tuple of 4 ints and profile returns a single int. > Can profile be fixed to return a tuple (of 4 or 1 ints) too?
Ah interesting. I ran into this recently when I noticed that some analysis tools I'd written a while back no longer worked and had to be updated because data that were ints were now tuples. Aside from these particular issues, it would be really great if the profiler stats data structure was specified. :) Jim ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7372> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com