We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PyCapsule_Import
1 parent e123a1d commit 3cd04fcCopy full SHA for 3cd04fc
Doc/c-api/capsule.rst
@@ -108,6 +108,14 @@ Refer to :ref:`using-capsules` for more information on using these objects.
108
Return the capsule's internal *pointer* on success. On failure, set an
109
exception and return ``NULL``.
110
111
+ .. note::
112
+
113
+ :c:func:`PyCapsule_Import` splits *name* on the ``.`` character, and
114
+ imports the first element. It then processes further elements using
115
+ attribute lookups. As a result, if *name* points to an attribute in
116
+ some submodule or subpackage, this submodule or subpackage must be
117
+ previously imported using other means (e.g. by using :c:func:`PyImport_ImportModule`).
118
119
.. versionchanged:: 3.3
120
*no_block* has no effect anymore.
121
0 commit comments