Message222135
Fair enough, I misled myself.
However, and I feel like I'm getting really picky here, but it still doesn't fulfill the paragraph I quoted:
def application(environ, start_response):
start_response('200 OK',
[('Content-type', 'text/plain')])
yield b''
try:
# produce an exception tuple, so we can re-call s_r
raise RuntimeError
except RuntimeError:
# Headers shouldn't have been sent, but they were
# so this will throw:
start_response('200 OK',
[('Content-type', 'text/plain')],
sys.exc_info())
yield b'error data or whatever'
But if async support a foregone conclusion anyway, is it worth bothering complying with that odd requirement? |
|
Date |
User |
Action |
Args |
2014-07-02 21:54:21 | rschoon | set | recipients:
+ rschoon, pje |
2014-07-02 21:54:21 | rschoon | set | messageid: <1404338061.72.0.461986368187.issue21890@psf.upfronthosting.co.za> |
2014-07-02 21:54:21 | rschoon | link | issue21890 messages |
2014-07-02 21:54:21 | rschoon | create | |
|