]> granicus.if.org Git - python/commit
Sockets facelift. APIs that could return binary data (e.g. aton() and
authorGuido van Rossum <guido@python.org>
Mon, 21 May 2007 23:13:11 +0000 (23:13 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 21 May 2007 23:13:11 +0000 (23:13 +0000)
commit7d0a8264ff29fe8963bb1cc67debc03e7c728a98
treebb50e8fb32745b01279619826cb5bb30f2ccac12
parent88effc1251c295b0e70961b587fe0de63bf10754
Sockets facelift. APIs that could return binary data (e.g. aton() and
recv()) now return bytes, not str or str8.  The socket.py code is
redone; it now subclasses _socket.socket and instead of having its own
_fileobject for makefile(), it uses io.SocketIO.  Some stuff in io.py
was moved around to make this work.  (I really need to rethink my
policy regarding readline() and read(-1) on raw files; and readline()
on buffered files ought to use peeking().  Later.)
Lib/io.py
Lib/socket.py
Lib/test/test_socket.py
Lib/urllib2.py
Modules/socketmodule.c