File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,19 @@ 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
114+ .. note ::
115+
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.
120+
111121 .. versionchanged:: 3.3
112122 *no_block* has no effect anymore.
113123
You can’t perform that action at this time.
0 commit comments