From fa3ac11be023683d25d14f1fedc96d0a75f2ac85 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Thu, 16 Sep 2010 16:13:52 +0000 Subject: [PATCH] The return value is a tuple, not an iterable --- pep-0444.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pep-0444.txt b/pep-0444.txt index 52428c265..97a23a3d1 100644 --- a/pep-0444.txt +++ b/pep-0444.txt @@ -736,11 +736,10 @@ method. Values Returned by A Web3 Application ------------------------------------- -Web3 applications return an iterable in the form (``status``, -``headers``, ``body``). The return value can be any iterable type -that returns exactly three values. If the server supports -asynchronous applications (``web3.async``), the response may be a -callable object (which accepts no arguments). +Web3 applications return a tuple in the form (``status``, ``headers``, +``body``). If the server supports asynchronous applications +(``web3.async``), the response may be a callable object (which accepts no +arguments). The ``status`` value is assumed by a gateway or server to be an HTTP "status" bytes instance like ``b'200 OK'`` or ``b'404 Not Found'``.