summaryrefslogtreecommitdiff
path: root/Lib/socket.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-05-31 03:09:25 +0000
committerRaymond Hettinger <python@rcn.com>2004-05-31 03:09:25 +0000
commit027bb633b6899a0847d81cb35cbccdff5a468766 (patch)
tree4d6694b894394f6dd73ed6eb7c8c47c1909f056d /Lib/socket.py
parentcb87bc8e7ee3a2ffd83dd1b12fcfa1c01aa740aa (diff)
downloadcpython-git-027bb633b6899a0847d81cb35cbccdff5a468766.tar.gz
Add weakref support to sockets and re pattern objects.
Diffstat (limited to 'Lib/socket.py')
-rw-r--r--Lib/socket.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/socket.py b/Lib/socket.py
index 39d511962b..e97ce5979f 100644
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -147,7 +147,8 @@ class _socketobject(object):
__doc__ = _realsocket.__doc__
- __slots__ = ["_sock", "send", "recv", "sendto", "recvfrom"]
+ __slots__ = ["_sock", "send", "recv", "sendto", "recvfrom",
+ "__weakref__"]
def __init__(self, family=AF_INET, type=SOCK_STREAM, proto=0, _sock=None):
if _sock is None: