mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
bpo-45855: document that no_block has no use anymore in PyCapsule_Import (#29665)
This commit is contained in:
parent
f3c16a5e72
commit
f4095e53ab
3 changed files with 9 additions and 10 deletions
|
|
@ -103,13 +103,14 @@ Refer to :ref:`using-capsules` for more information on using these objects.
|
|||
Import a pointer to a C object from a capsule attribute in a module. The
|
||||
*name* parameter should specify the full name to the attribute, as in
|
||||
``module.attribute``. The *name* stored in the capsule must match this
|
||||
string exactly. If *no_block* is true, import the module without blocking
|
||||
(using :c:func:`PyImport_ImportModuleNoBlock`). If *no_block* is false,
|
||||
import the module conventionally (using :c:func:`PyImport_ImportModule`).
|
||||
string exactly.
|
||||
|
||||
Return the capsule's internal *pointer* on success. On failure, set an
|
||||
exception and return ``NULL``.
|
||||
|
||||
.. versionchanged:: 3.3
|
||||
*no_block* has no effect anymore.
|
||||
|
||||
|
||||
.. c:function:: int PyCapsule_IsValid(PyObject *capsule, const char *name)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue