Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Interface for Python values of type Bytes
. With Python 2, aliases for String
.
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
.