package py
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Object defines functions for working with generic Python objects
type t = pyobject
t is a pointer to PyObject
val is_null : t -> bool
Returns true if an object is null
val is_none : t -> bool
Returns true if an object is None
val incref : t -> unit
Increments reference count for an object
val decref : t -> unit
Decrements reference count for an object
val length : t -> int64
Returns the length of an object
val del_item_s : t -> string -> unit
Deletes the item at the given string index
val del_item_i : t -> int -> unit
Deletes the item at the given integer index
val del_attr_s : t -> string -> unit
val has_attr_s : t -> string -> bool
val to_string : t -> string
Convert an object to OCaml string
val to_bytes : t -> bytes
Convert an object to OCaml bytes
val to_int : t -> int
Convert an object to OCaml int
val to_int64 : t -> int64
Convert an object to OCaml int64
val to_float : t -> float
Convert an object to OCaml float
val to_bool : t -> bool
Convert an object to OCaml bool
val from_bool : bool -> t
Create a boolean object
val none : unit -> t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>