File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
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.
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
111
114
.. note ::
112
115
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.
118
120
119
121
.. versionchanged:: 3.3
120
122
*no_block* has no effect anymore.
You can’t perform that action at this time.
0 commit comments