package pyml

  1. Overview
  2. Docs
OCaml bindings for Python

Install

Dune Dependency

Authors

Maintainers

Sources

pyml-20220325.tar.gz
sha512=462f86478a0131248805cc13d7eb4e5b4259241d9074e5ab00221018b7fe2d023a12ebf7ffcb81211ffca689fb6b065f251bd900e1925c481f98169e652ab6fa

doc/pyml/Py/Number/index.html

Module Py.NumberSource

Interface for Python values of type Number.

Sourceval absolute : Object.t -> Object.t

Wrapper for PyNumber_Absolute

Wrapper for PyNumber_Add

Sourceval number_and : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_And

Sourceval divmod : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Divmod

Sourceval float : Object.t -> Object.t

Wrapper for PyNumber_Float

Sourceval floor_divide : Object.t -> Object.t -> Object.t
Sourceval in_place_add : Object.t -> Object.t -> Object.t
Sourceval in_place_and : Object.t -> Object.t -> Object.t
Sourceval in_place_floor_divide : Object.t -> Object.t -> Object.t
Sourceval in_place_lshift : Object.t -> Object.t -> Object.t
Sourceval in_place_multiply : Object.t -> Object.t -> Object.t
Sourceval in_place_or : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_InPlaceOr

Sourceval in_place_power : ?modulo:Object.t -> Object.t -> Object.t -> Object.t
Sourceval in_place_remainder : Object.t -> Object.t -> Object.t
Sourceval in_place_rshift : Object.t -> Object.t -> Object.t
Sourceval in_place_subtract : Object.t -> Object.t -> Object.t
Sourceval in_place_true_divide : Object.t -> Object.t -> Object.t
Sourceval in_place_xor : Object.t -> Object.t -> Object.t
Sourceval invert : Object.t -> Object.t

Wrapper for PyNumber_Invert

Sourceval lshift : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Lshift

Sourceval multiply : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Multiply

Sourceval negative : Object.t -> Object.t

Wrapper for PyNumber_Negative

Sourceval number_or : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Or

Sourceval positive : Object.t -> Object.t

Wrapper for PyNumber_Positive

Sourceval power : ?modulo:Object.t -> Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Power

Sourceval remainder : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Remainder

Sourceval rshift : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Rshift

Sourceval subtract : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Subtract

Sourceval true_divide : Object.t -> Object.t -> Object.t
Sourceval number_xor : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Xor

Sourceval check : Object.t -> bool

check v returns true if v is a Python float or a Python integer/long.

Sourceval to_float : Object.t -> float

to_float v returns the floating-point value equal to the Python integer or Python float v. Raises a failure (Failure _) if v is neither a float nor an integer.

Sourceval of_int : int -> Object.t

Synonym of Py.Int.of_int

Sourceval of_int64 : int64 -> Object.t

Synonym of Py.Int.of_int64

Sourceval of_float : float -> Object.t

Synomym of add

Synomym of subtract

Synomym of multiply

Synomym of true_divide

Synomym of power

Sourceval (~-) : Object.t -> Object.t

Synomym of negative

Sourceval (land) : Object.t -> Object.t -> Object.t

Synomym of number_and

Sourceval (lor) : Object.t -> Object.t -> Object.t

Synomym of number_or

Sourceval (lxor) : Object.t -> Object.t -> Object.t

Synomym of number_xor

Sourceval (lsl) : Object.t -> Object.t -> Object.t

Synomym of lshift

Sourceval (lsr) : Object.t -> Object.t -> Object.t

Synomym of rshift

OCaml

Innovation. Community. Security.