RE: [Python-Dev] Re: module extension search order - can it be changed?

Guido:
I thought for sure Greg had left off the smiley.
Oh. Yes. Of course. what-can-I-say-it-was-early-in-the-morning -- Michael Chermside

Chermside, Michael:
Guido:
I thought for sure Greg had left off the smiley.
Oh. Yes. Of course.
Actually, I was at least partially serious. It seems more important to me for the traceback to indicate what operation was being attempted, rather than showing the literal source code; and the bytecode, together with other information available from the stack frames, ought to provide enough information to do this. I hadn't considered optimised bytecode -- I can see that could mess things up. In any case, I think there's room for providing more information in the traceback than there is now, even without decompiling anything. For example, I'd like to see some indication of the values (or at least the types) being passed to each function call. In many cases, that would save me a trip around the insert_print_statements- run-fix_the_bug-take_the_print_ statements_out_again loop. Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+

In any case, I think there's room for providing more information in the traceback than there is now, even without decompiling anything. For example, I'd like to see some indication of the values (or at least the types) being passed to each function call. In many cases, that would save me a trip around the insert_print_statements- run-fix_the_bug-take_the_print_ statements_out_again loop.
Check out cgitb.py. It does a lot of that (albeit in HTML). --Guido van Rossum (home page: http://www.python.org/~guido/)

Guido> Check out cgitb.py. It does a lot of that (albeit in HTML). I have a version of cgitb which includes the ability to display plain text. See <http://python.org/sf/569574>. Last time I brought the topic up the suggestion was that much of this functionality belongs in traceback.py. I'm not sure I'm up to such major module surgery. It would probably be more productive for Ping to tackle that. Skip
participants (4)
-
Chermside, Michael
-
Greg Ewing
-
Guido van Rossum
-
Skip Montanaro