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.
105
105
``module.attribute ``. The *name * stored in the capsule must match this
106
106
string exactly.
107
107
108
+ This function splits *name * on the ``. `` character, and imports the first
109
+ element. It then processes further elements using attribute lookups.
110
+
108
111
Return the capsule's internal *pointer * on success. On failure, set an
109
112
exception and return ``NULL ``.
110
113
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
+
111
121
.. versionchanged:: 3.3
112
122
*no_block* has no effect anymore.
113
123
You can’t perform that action at this time.
0 commit comments