[Python-3000] bug in i/o module buffering? (original) (raw)

Guido van Rossum guido at python.org
Sun Oct 28 02:21:21 CET 2007


More interesting is, what's b?

2007/10/27, Bill Janssen <janssen at parc.com>:

In the following, 'n' is equal to 0 (read from a non-blocking socket). Is this a bug in the I/O module buffering?

Bill Traceback (most recent call last): File "/local/python/3k/src/Lib/SocketServer.py", line 222, in handlerequest self.processrequest(request, clientaddress) File "/local/python/3k/src/Lib/SocketServer.py", line 241, in processrequest self.finishrequest(request, clientaddress) File "/local/python/3k/src/Lib/SocketServer.py", line 254, in finishrequest self.RequestHandlerClass(request, clientaddress, self) File "/local/python/3k/src/Lib/SocketServer.py", line 522, in init self.handle() File "/local/python/3k/src/Lib/BaseHTTPServer.py", line 330, in handle self.handleonerequest() File "/local/python/3k/src/Lib/BaseHTTPServer.py", line 313, in handleonerequest self.rawrequestline = self.rfile.readline() File "/local/python/3k/src/Lib/io.py", line 391, in readline b = self.read(nreadahead()) File "/local/python/3k/src/Lib/io.py", line 377, in nreadahead readahead = self.peek(1, unsafe=True) File "/local/python/3k/src/Lib/io.py", line 778, in peek current = self.raw.read(toread) File "/local/python/3k/src/Lib/io.py", line 455, in read del b[n:] TypeError: 'slice' object does not support item deletion ----------------------------------------


Python-3000 mailing list Python-3000 at python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/guido%40python.org

-- --Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-3000 mailing list