[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Python ceval.c,2.207,2.208

Guido van Rossum guido@python.org
Wed, 11 Oct 2000 09:41:47 -0500


> Suggest replacing it with:
> 
>     assert(!"Invalid argument to DUP_TOPX");

Actually, I would recommend

	Py_FatalError("Invalid argument to DUP_TOPX")

It's not quite the same since it also triggers in release mode.  If,
as Thomas says, this should never happen and can only be caused by
garbled bytecode, a fatal error is proper rather than a SystemError.

--Guido van Rossum (home page: http://www.python.org/~guido/)