package pyml

  1. Overview
  2. Docs

Module Py.MappingSource

Interface for Python values with a Mapping interface.

Sourceval check : Object.t -> bool

Wrapper for PyMapping_Check

Sourceval get_item_string : Object.t -> string -> Object.t option
Sourceval find_string : Object.t -> string -> Object.t

Equivalent to get_item_string but raises a Not_found exception in case of failure.

Sourceval find_string_opt : Object.t -> string -> Object.t option

Alias for get_item_string.

Sourceval has_key : Object.t -> Object.t -> bool

Wrapper for PyMapping_HasKey

Sourceval has_key_string : Object.t -> string -> bool
Sourceval length : Object.t -> int

Wrapper for PyMapping_Length

Sourceval set_item_string : Object.t -> string -> Object.t -> unit
Sourceval size : Object.t -> int

Wrapper for PyMapping_Size

OCaml

Innovation. Community. Security.