How to pop the interpreter's stack?

misnomer at gmail.com misnomer at gmail.com
Sun Dec 26 20:12:50 EST 2010


On Dec 23, 3:22 am, Steven D'Aprano <steve
+comp.lang.pyt... at pearwood.info> wrote:
> You seem to have completely missed that there will be no bug report,
> because this isn't a bug. (Or if it is a bug, the bug is elsewhere,
> external to the function that raises the exception.) It is part of the
> promised API. The fact that the exception is generated deep down some
> chain of function calls is irrelevant.

While the idea of being able to do this (create a general validation
exception) sounds mildly appealing at first, what happens when the
module implementing this documented API and documented error, has a
bug? It seems that the user, or even module developer in the midst of
writing, would now have no tools to easily tackle the problem, and no
useful information to submit in the required bug report.



More information about the Python-list mailing list