File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,16 +105,18 @@ Refer to :ref:`using-capsules` for more information on using these objects.
105105 ``module.attribute ``. The *name * stored in the capsule must match this
106106 string exactly.
107107
108+ This function splits *name * on the ``. `` character, and imports the first
109+ element. It then processes further elements using attribute lookups.
110+
108111 Return the capsule's internal *pointer * on success. On failure, set an
109112 exception and return ``NULL ``.
110113
111114 .. note ::
112115
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 `).
116+ If *name * points to an attribute of some submodule or subpackage, this
117+ submodule or subpackage must be previously imported using other means
118+ (for example, by using :c:func: `PyImport_ImportModule `) for the
119+ attribute lookups to succeed.
118120
119121 .. versionchanged:: 3.3
120122 *no_block* has no effect anymore.
You can’t perform that action at this time.
0 commit comments