Comment 4 for bug 332063

Revision history for this message
Michael Haubenwallner (d2m) wrote :

more info for discussion -- looks like we better change Zope3/trunk/src/zope/publisher/http.py instead

======= change of signature from readlines(self, hint=None) to readlines(self, hint=0)
Filename: Zope3/trunk/src/zope/publisher/http.py
Revision 66941 - (view) (download) (as text) - [select for diffs]
Modified Fri Apr 14 13:24:35 2006 UTC (2 years, 10 months ago) by dobe
File length: 34033 byte(s)
Diff to previous 66940

changed the default value of the hint argument to 0, because StringIO.readline requires an int
http://svn.zope.org/Zope3/trunk/src/zope/publisher/http.py?rev=66941&r1=66940&r2=66941

======= twisted api
def readlines(self, hint=None):
    Read until EOF, collecting all lines in a list, and returns that list. The hint argument is ignored (as is allowed in the API specification)
http://python.net/crew/mwh/apidocs/twisted.web2.wsgi.InputStream.html#readlines

======= python api
readlines([sizehint])
    Read until EOF using readline() and return a list containing the lines thus read. If the optional sizehint argument is present, instead of reading up to EOF, whole lines totalling approximately sizehint bytes (possibly after rounding up to an internal buffer size) are read. Objects implementing a file-like interface may choose to ignore sizehint if it cannot be implemented, or cannot be implemented efficiently.
http://www.python.org/doc/2.5.2/lib/bltin-file-objects.html

======= pythonpaste api
def readlines(self, hint=None):
http://svn.pythonpaste.org/Paste/trunk/paste/httpserver.py

Q: how to move the issue to the zope bug collector?