[Python-Dev] Add PEP 444, Python Web3 Interface.

"Martin v. Löwis" martin at v.loewis.de
Fri Sep 17 15:18:39 CEST 2010


Am 16.09.10 02:02, schrieb John Nagle:
> On 9/15/2010 4:44 PM, python-dev-request at python.org wrote:
>> ``SERVER_PORT`` must be a bytes instance (not an integer).
>
> What's that supposed to mean? What goes in the "bytes
> instance"? A character string in some format? A long binary
> number? If the latter, with which byte ordering? What
> problem does this\ solve?

Just interpreting (i.e. not having participated in the specification):

Given the CGI background of all this, SERVER_PORT is an ASCII-encoded
decimal rendering of the port number.

As to what problem this solves: I guess it allows for easy pass-through
from the web server.

Regards,
Martin


More information about the Python-Dev mailing list