'Bad return' profiler assertion error in python 2.2, worked in <=2.1
tim.one at home.com
Fri Jan 25 02:33:22 CET 2002
> [snip tale of woe regarding assertions in the profiler]
> I had the exact same problem - so I commented out the
> assertions, and it worked fine. I then promptly forgot about it :)
> Unfortunatly, commenting the assertions out doesn't seem to be enough
> for my problem.
You've got a tough job. Guido worked intensely to rework that code because
the sloppy former code computed dead-wrong statistics in real-life cases.
The asserts are in part documenting what needs to be true for the
calculations to be correct. So the only approach that's going to work in
the end is to stare at the code until you gain deep understanding of how the
code works. We also repaired inaccurate comments in the profiler, so don't
be afraid to read them <wink>.
More information about the Python-list