package pyml
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
OCaml bindings for Python
Install
dune-project
Dependency
Authors
Maintainers
Sources
20250807.tar.gz
sha512=4c672ee3e7561114f3801fcf60d99ba4345712b582c4ad0e9fe64e4b92fb6a0a8ba62e7cced4dc1302d44ec7c32cae2c3a95d2d5e30424146c99fc120e6e657e
doc/pyml/Py/Capsule/index.html
Module Py.CapsuleSource
Embedding of OCaml values in Python.
For a given type 'a, create s returns a pair { wrap; unwrap }. wrap v transforms the value v of type 'a to an opaque Python object. unwrap w transforms the opaque Python object w previously obtained with wrap v into the original OCaml value v, such that unwrap (wrap v) = v. Failure _ is raised if a wrapper has already been generated for a type of the same name.
Same as create, but returns a plain pair instead of a record.
type_of w returns the type string associated to the opaque Python object w.
Wrapper for PyCapsule_IsValid. OCaml capsules have the name "ocaml-capsule". We have check v = is_valid v "ocaml-capsule".
unsafe_wrap_value v transforms the value v to an opaque Python object.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>