package pyml

  1. Overview
  2. Docs

Module Py.BytesSource

Interface for Python values of type Bytes. With Python 2, aliases for String.

Sourceval of_string : string -> Object.t

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

Same as of_string but with an argument of type bytes.

Sourceval to_string : Object.t -> string

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

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

Sourceval length : Object.t -> int

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

OCaml

Innovation. Community. Security.