pyml

OCaml bindings for Python
IN THIS PACKAGE
Module Py . Bytes
val of_string : string -> Object.t

of_string s returns the Python byte sequence with the contents of s.

val of_bytes : Stdcompat.bytes -> Object.t

Same as of_string but with an argument of type bytes.

val to_string : Object.t -> string

to_string o returns the string contained in the Python value o.

val to_bytes : Object.t -> Stdcompat.bytes

Same as to_string but with an a result of type bytes.

val length : Object.t -> int

length s returns the length of the Python byte sequence s.