diff options
author | Raymond Hettinger <python@rcn.com> | 2004-05-31 03:09:25 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-05-31 03:09:25 +0000 |
commit | 027bb633b6899a0847d81cb35cbccdff5a468766 (patch) | |
tree | 4d6694b894394f6dd73ed6eb7c8c47c1909f056d /Lib/socket.py | |
parent | cb87bc8e7ee3a2ffd83dd1b12fcfa1c01aa740aa (diff) | |
download | cpython-git-027bb633b6899a0847d81cb35cbccdff5a468766.tar.gz |
Add weakref support to sockets and re pattern objects.
Diffstat (limited to 'Lib/socket.py')
-rw-r--r-- | Lib/socket.py | 3 |
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: |