pyml

OCaml bindings for Python
IN THIS PACKAGE
Module Py . Class
val init : ?parents:Object.t list -> ?fields:(string * Object.t) list -> ?methods:(string * Object.t) list -> string -> Object.t

init ~parents ~fields ~methods classname Returns a new class type.

  • parameter parents

    list of base classes (default: []).

  • parameter fields

    associative list for field values (default : []).

  • parameter methods

    associative list for method closures (default : []).