[mod_python] PSP (exit/quit/return statement)

Graham Dumpleton graham.dumpleton at gmail.com
Wed Apr 25 17:47:42 EDT 2007

On 25/04/07, Christian S. Perone <christian.perone at gmail.com> wrote:
> Hello, there is an exit, quit, abort or return like statement for psp ?
> For example, I want to do that:
> <%
> req.write("1")
> [exit statement]
> req.write("2")
> %>
> in a way that the statement abort the flow of execution and the result be:
> 1
> I have been read the documentation and don't found anything like that.

There is no way to currently do it.

Some may argue that it is bad practice, but other templating systems
do have such a feature.

Propose a syntax or mechanism for doing it and if others think it is
reasonable it can be added to list of issues to be looked at.


More information about the Mod_python mailing list