Message222135
| Author |
rschoon |
| Recipients |
pje, rschoon |
| Date |
2014年07月02日.21:54:21 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1404338061.72.0.461986368187.issue21890@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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? |
|
History
|
|---|
| 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 |
|