diff options
author | Raymond Hettinger <python@rcn.com> | 2004-05-31 03:09:25 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-05-31 03:09:25 (GMT) |
commit | 027bb633b6899a0847d81cb35cbccdff5a468766 (patch) | |
tree | 4d6694b894394f6dd73ed6eb7c8c47c1909f056d /Lib/socket.py | |
parent | cb87bc8e7ee3a2ffd83dd1b12fcfa1c01aa740aa (diff) | |
download | cpython-027bb633b6899a0847d81cb35cbccdff5a468766.zip cpython-027bb633b6899a0847d81cb35cbccdff5a468766.tar.gz cpython-027bb633b6899a0847d81cb35cbccdff5a468766.tar.bz2 |
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 39d5119..e97ce59 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: |