PyDocs

Nav

Data Types

CapsuleType

types

class · Added in 3.13
Capsule objects let you wrap a C "void *" pointer in a Python
object.  They're a way of passing data through the Python interpreter
without creating your own custom type.

Capsules are used for communication between extension modules.
They provide a way for an extension module to export a C interface
to other extension modules, so that extension modules can use the
Python import mechanism to link to one another.
0 Examples
No examples for types/CapsuleType.
See Also
No see-alsos for types/CapsuleType
0 Notes
No notes for CapsuleType