Re: [Web-SIG] environ[wsgi.input].read()

2008-01-25 Thread Brian Smith
James Y Knight wrote: On Jan 25, 2008, at 10:04 AM, Brian Smith wrote: 1. PEP 333 doesn't indicate that the size parameter for the read() method is optional. Is it optional or required? If it is optional, is the default value -1? The spec says it's required (by virtue of not saying

Re: [Web-SIG] environ[wsgi.input].read()

2008-01-25 Thread James Y Knight
On Jan 25, 2008, at 10:04 AM, Brian Smith wrote: 1. PEP 333 doesn't indicate that the size parameter for the read() method is optional. Is it optional or required? If it is optional, is the default value -1? The spec says it's required (by virtue of not saying it's optional) 2. What are

[Web-SIG] environ[wsgi.input].read()

2008-01-25 Thread Brian Smith
1. PEP 333 doesn't indicate that the size parameter for the read() method is optional. Is it optional or required? If it is optional, is the default value -1? 2. What are the semantics of environ[wsgi.input].read(-1) when Content-Length is provided? Is it guaranteed to return the entire