More interesting is, what's b?

2007/10/27, Bill Janssen <[EMAIL PROTECTED]>:
> 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 handle_request
>     self.process_request(request, client_address)
>   File "/local/python/3k/src/Lib/SocketServer.py", line 241, in 
> process_request
>     self.finish_request(request, client_address)
>   File "/local/python/3k/src/Lib/SocketServer.py", line 254, in finish_request
>     self.RequestHandlerClass(request, client_address, 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.handle_one_request()
>   File "/local/python/3k/src/Lib/BaseHTTPServer.py", line 313, in 
> handle_one_request
>     self.raw_requestline = 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(to_read)
>   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
> [email protected]
> 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/)
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to