Chad Whitacre wrote:
I think the trick is that in HTTP, success and error conditions both
produce the same result: a Response message. In Python we distinguish
the two: successful requests (i.e., function calls) return
something; bad requests raise something.
So perhaps the answer is
Dear Web-SIG,
First thing's first:
class Responder:
def respond(request):
Yes, I forgot 'self'. Sorry. I rushed the announcement out 2.5 hrs
before my plane to Dallas took off. BTW, Ian: take that as a +1 for your
Python 4k, I guess. :^)
Second thing's second:
raise