Re: an idea: "letter bombs"

Guido.van.Rossum@cwi.nl
Fri, 17 Dec 1993 11:39:33 +0100

> > Regarding the suppression of stack traces: how about a "production
> > code" flag (say -p) instead of a "debugging mode" flag?
> Would it still print the offending line, I think this would be preferable to
> not printing anything in ``production code''? But no full stack trace would
> be helpful.

Hmm, I hadn't thought of that. How about an option -sN specifying
that only the last N entries of the stack trace should be printed? -s0
should suppress the entire stack trace (including the header line). The
default could be -s30 or something like that. It should also be
settable under program control (e.g. by setting sys.stacktracelimit).

--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>