The return value is a tuple, not an iterable

This commit is contained in:
Armin Ronacher 2010-09-16 16:13:52 +00:00
parent a06e8726a4
commit fa3ac11be0
1 changed files with 4 additions and 5 deletions

View File

@ -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'``.