mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-36974: expand call protocol documentation (GH-13844)
CC @encukou I'm also adding Petr Viktorin as contributor for vectorcall in the "what's new" section. https://bugs.python.org/issue36974 Automerge-Triggered-By: @encukou Automerge-Triggered-By: @encukou
This commit is contained in:
parent
a12255d8de
commit
9a13a388f2
8 changed files with 467 additions and 293 deletions
|
@ -697,6 +697,8 @@ The following functions are used to create and modify Unicode exceptions from C.
|
|||
``0`` on success, ``-1`` on failure.
|
||||
|
||||
|
||||
.. _recursion:
|
||||
|
||||
Recursion Control
|
||||
=================
|
||||
|
||||
|
@ -704,6 +706,8 @@ These two functions provide a way to perform safe recursive calls at the C
|
|||
level, both in the core and in extension modules. They are needed if the
|
||||
recursive code does not necessarily invoke Python code (which tracks its
|
||||
recursion depth automatically).
|
||||
They are also not needed for *tp_call* implementations
|
||||
because the :ref:`call protocol <call>` takes care of recursion handling.
|
||||
|
||||
.. c:function:: int Py_EnterRecursiveCall(const char *where)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue