Module Py__.Py_wrap
module W : sig ... endval returning : 'a W.t -> 'a tval (@->) : 'a W.t -> 'b t -> ('a -> 'b) tval none : unit W.tval bool : bool W.tval int : int W.tval float : float W.tval string : string W.tval list : 'a W.t -> 'a list W.tval dict : 'a W.t -> 'b W.t -> ('a * 'b) list W.tval tuple2 : 'a1 W.t -> 'a2 W.t -> ('a1 * 'a2) W.tval tuple3 : 'a1 W.t -> 'a2 W.t -> 'a3 W.t -> ('a1 * 'a2 * 'a3) W.tval tuple4 : 'a1 W.t -> 'a2 W.t -> 'a3 W.t -> 'a4 W.t -> ('a1 * 'a2 * 'a3 * 'a4) W.tval tuple5 : 'a1 W.t -> 'a2 W.t -> 'a3 W.t -> 'a4 W.t -> 'a5 W.t -> ('a1 * 'a2 * 'a3 * 'a4 * 'a5) W.tval pyobject : Py__.Py_base.pyobject W.tval python_fn : 'a t -> Py__.Py_base.pyobject -> 'apython_fn t pyobjectwraps a python functionpyobjectso that it can be used in a type-safe way.
val ocaml_fn : 'a t -> 'a -> Py__.Py_base.pyobject -> Py__.Py_base.pyobjectocaml_fn t fwraps an ocaml functionfso that it can be used from python. E.g. it could get registered viaCamlModule.add_fn. Note that even if some argument conversion fails,fwill have been partially applied up to this point.
val to_string : 'a t -> string