[Web-SIG] WSGI 2.0

James Y Knight foom at fuhm.net
Fri Mar 30 03:35:22 CEST 2007


On Mar 29, 2007, at 8:56 PM, Ian Bicking wrote:
> readline(size)
> --------------
>
> Currently the specification does not require servers to provide
> ``environ['wsgi.input'].readline(size)`` (the size argument in
> particular).  But ``cgi.FieldStorage`` calls readline this way, so in
> effect it is required.

I actually think a minor revision to WSGI should be issued  
immediately, the only change being that readline(size) is required to  
be implemented by servers/gateways, and bumping the rev number to  
1.1. Leaving the spec as it is is basically a lie. You cannot  
implement a WSGI server now, without implementing readline(size) and  
expect apps to work. Adding this is a completely backwards compatible  
change, and is probably already implemented in most (all?) servers,  
so it shouldn't be controversial.

James


More information about the Web-SIG mailing list