Merge branch 'master' of github.com:python/peps

This commit is contained in:
Barry Warsaw 2017-09-07 19:56:21 -07:00
commit cfff651113
1 changed files with 3 additions and 8 deletions

View File

@ -196,8 +196,9 @@ such as ``ctypes``.
The new C APIs required for audit hooks are:: The new C APIs required for audit hooks are::
# Add an auditing hook # Add an auditing hook
typedef int (*hook_func)(const char *event, PyObject *args); typedef int (*hook_func)(const char *event, PyObject *args,
int PySys_AddAuditHook(hook_func hook); void *userData);
int PySys_AddAuditHook(hook_func hook, void *userData);
# Raise an event with all auditing hooks # Raise an event with all auditing hooks
int PySys_Audit(const char *event, PyObject *args); int PySys_Audit(const char *event, PyObject *args);
@ -433,12 +434,6 @@ should be considered part of the rationale for including the hook.
``_PyEval_SetCoroutineWrapper``, ``sys.set_coroutine_wrapper``, " ``_PyEval_SetCoroutineWrapper``, ``sys.set_coroutine_wrapper``, "
", "Detect changes to the coroutine wrapper. ", "Detect changes to the coroutine wrapper.
" "
``Py_SetRecursionLimit``, ``sys.setrecursionlimit``, "
``(new_limit,)``", "Detect changes to the recursion limit.
"
``_PyEval_SetSwitchInterval``, ``sys.setswitchinterval``, "
``(interval_us,)``", "Detect changes to the switching interval.
"
"``socket.bind``, ``socket.connect``, ``socket.connect_ex``, "``socket.bind``, ``socket.connect``, ``socket.connect_ex``,
``socket.getaddrinfo``, ``socket.getnameinfo``, ``socket.sendmsg``, ``socket.getaddrinfo``, ``socket.getnameinfo``, ``socket.sendmsg``,
``socket.sendto``", ``socket.address``, "``(address,)``", "Detect ``socket.sendto``", ``socket.address``, "``(address,)``", "Detect