summaryrefslogtreecommitdiffstats
path: root/Lib/socket.py
diff options
context:
space:
mode:
authorMartin Blais <blais@furius.ca>2006-06-04 13:49:49 (GMT)
committerMartin Blais <blais@furius.ca>2006-06-04 13:49:49 (GMT)
commitaf2ae72cb20e853091faad0dd11d51e97539881d (patch)
tree218d426ffb6408a97dcf7ff2055cc4b28476b1b5 /Lib/socket.py
parent63f0db682e00d051466e5d739ba85f2a30279eef (diff)
downloadcpython-af2ae72cb20e853091faad0dd11d51e97539881d.zip
cpython-af2ae72cb20e853091faad0dd11d51e97539881d.tar.gz
cpython-af2ae72cb20e853091faad0dd11d51e97539881d.tar.bz2
Fixes in struct and socket from merge reviews.
- Following Guido's comments, renamed * pack_to -> pack_into * recv_buf -> recv_into * recvfrom_buf -> recvfrom_into - Made fixes to _struct.c according to Neal Norwitz comments on the checkins list. - Converted some ints into the appropriate -- I hope -- ssize_t and size_t.
Diffstat (limited to 'Lib/socket.py')
-rw-r--r--Lib/socket.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/socket.py b/Lib/socket.py
index cc5e65e..fa0e663 100644
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -141,7 +141,7 @@ class _socketobject(object):
__doc__ = _realsocket.__doc__
__slots__ = ["_sock",
- "recv", "recv_buf", "recvfrom_buf",
+ "recv", "recv_into", "recvfrom_into",
"send", "sendto", "recvfrom",
"__weakref__"]
@@ -151,10 +151,10 @@ class _socketobject(object):
self._sock = _sock
self.send = self._sock.send
self.recv = self._sock.recv
- self.recv_buf = self._sock.recv_buf
+ self.recv_into = self._sock.recv_into
self.sendto = self._sock.sendto
self.recvfrom = self._sock.recvfrom
- self.recvfrom_buf = self._sock.recvfrom_buf
+ self.recvfrom_into = self._sock.recvfrom_into
def close(self):
self._sock = _closedsocket()