mirror of
https://github.com/python/cpython.git
synced 2025-08-26 19:55:24 +00:00
Add weakref support to sockets and re pattern objects.
This commit is contained in:
parent
cb87bc8e7e
commit
027bb633b6
7 changed files with 69 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue