Skip to content

Commit

Permalink
pythongh-111995: Add getnameinfo extension flag (python#111994)
Browse files Browse the repository at this point in the history
Add getnameinfo extension NI_IDN flag.
  • Loading branch information
adder32 committed Nov 15, 2023
1 parent 62802b6 commit fe9db90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Added the ``NI_IDN`` constant to the :mod:`socket` module when present in C
at build time for use with :func:`socket.getnameinfo`.
3 changes: 3 additions & 0 deletions Modules/socketmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -8803,6 +8803,9 @@ socket_exec(PyObject *m)
#ifdef NI_DGRAM
ADD_INT_MACRO(m, NI_DGRAM);
#endif
#ifdef NI_IDN
ADD_INT_MACRO(m, NI_IDN);
#endif

/* shutdown() parameters */
#ifdef SHUT_RD
Expand Down

0 comments on commit fe9db90

Please sign in to comment.