[Python-checkins] cpython: Fix issue #17996: expose socket.AF_LINK constant on BSD and OSX.
giampaolo.rodola
python-checkins at python.org
Tue May 21 21:02:16 CEST 2013
http://hg.python.org/cpython/rev/155e6fb309f5
changeset: 83885:155e6fb309f5
parent: 83883:26588b6a39d9
user: Giampaolo Rodola' <g.rodola at gmail.com>
date: Tue May 21 21:02:04 2013 +0200
summary:
Fix issue #17996: expose socket.AF_LINK constant on BSD and OSX.
files:
Doc/library/socket.rst | 5 +++++
Misc/NEWS | 2 ++
Modules/socketmodule.c | 3 +++
3 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -293,6 +293,11 @@
TIPC related constants, matching the ones exported by the C socket API. See
the TIPC documentation for more information.
+.. data:: AF_LINK
+
+ Availability: BSD, OSX.
+
+ .. versionadded:: 3.4
.. data:: has_ipv6
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -99,6 +99,8 @@
Library
-------
+- Issue #17996: socket module now exposes AF_LINK constant on BSD and OSX.
+
- Issue #17900: Allowed pickling of recursive OrderedDicts. Decreased pickled
size and pickling time.
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -5658,6 +5658,9 @@
/* Alias to emulate 4.4BSD */
PyModule_AddIntMacro(m, AF_ROUTE);
#endif
+#ifdef AF_LINK
+ PyModule_AddIntMacro(m, AF_LINK);
+#endif
#ifdef AF_ASH
/* Ash */
PyModule_AddIntMacro(m, AF_ASH);
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list