commit | 3d1f2d3b52084bf967092ed77309cba1aed206f3 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Mon Oct 06 14:38:20 2014 -0400 |
committer | Benjamin Peterson <benjamin@python.org> | Mon Oct 06 14:38:20 2014 -0400 |
tree | b5439762109c6225e911a1b8478924a6cba48aea | |
parent | 7788dba204d23d15da2dda8a63e6a719db8a02a7 [diff] [blame] |
make _socket.socket weakrefable (closes #22569) Patch from Alex Gaynor.
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h index 8515499..d98e00e 100644 --- a/Modules/socketmodule.h +++ b/Modules/socketmodule.h
@@ -132,6 +132,7 @@ sets a Python exception */ double sock_timeout; /* Operation timeout in seconds; 0.0 means non-blocking */ + PyObject *weakreflist; } PySocketSockObject; /* --- C API ----------------------------------------------------*/