mirror of
https://github.com/python/cpython.git
synced 2025-07-10 04:45:36 +00:00
gh-111995: Add getnameinfo extension flag (#111994)
Add getnameinfo extension NI_IDN flag.
This commit is contained in:
parent
62802b6228
commit
fe9db901b2
2 changed files with 5 additions and 0 deletions
|
@ -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`.
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue