summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.h
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-01-06 19:43:06 (GMT)
committerGitHub <noreply@github.com>2021-01-06 19:43:06 (GMT)
commitf22b7ca1afd98a7381a9fe9e53bd6dfa2a5eba16 (patch)
tree2f41e9ea3c82a312af19a4c18711998190b7a33f /Modules/socketmodule.h
parentff8458b918050168acda1ad6d079f52b8effa821 (diff)
downloadcpython-f22b7ca1afd98a7381a9fe9e53bd6dfa2a5eba16.zip
cpython-f22b7ca1afd98a7381a9fe9e53bd6dfa2a5eba16.tar.gz
cpython-f22b7ca1afd98a7381a9fe9e53bd6dfa2a5eba16.tar.bz2
bpo-41798: Allocate _socket module C API on the heap (GH-24126)
Diffstat (limited to 'Modules/socketmodule.h')
-rw-r--r--Modules/socketmodule.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h
index ba2c9f5..e4f375d 100644
--- a/Modules/socketmodule.h
+++ b/Modules/socketmodule.h
@@ -342,7 +342,8 @@ typedef struct {
*/
-/* C API for usage by other Python modules */
+/* C API for usage by other Python modules.
+ * Always add new things to the end for binary compatibility. */
typedef struct {
PyTypeObject *Sock_Type;
PyObject *error;