package scipy

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val get_py : string -> Py.Object.t

Get an attribute of this module as a Py.Object.t. This is useful to pass a Python function to another function.

module Iterator : sig ... end
module StringIO : sig ... end
val advance_iterator : ?default:Py.Object.t -> iterator:Py.Object.t -> unit -> Py.Object.t

next(iterator, default)

Return the next item from the iterator. If default is given and the iterator is exhausted, it is returned instead of raising StopIteration.

Byte literal

val callable : Py.Object.t -> Py.Object.t

None

val get_unbound_function : Py.Object.t -> Py.Object.t

Get the function out of a possibly unbound function

val iteritems : Py.Object.t -> Py.Object.t

Return an iterator over the (key, value) pairs of a dictionary.

val iterkeys : Py.Object.t -> Py.Object.t

Return an iterator over the keys of a dictionary.

val itervalues : Py.Object.t -> Py.Object.t

Return an iterator over the values of a dictionary.

val next : ?default:Py.Object.t -> iterator:Py.Object.t -> unit -> Py.Object.t

next(iterator, default)

Return the next item from the iterator. If default is given and the iterator is exhausted, it is returned instead of raising StopIteration.

val reduce : ?initial:Py.Object.t -> function_:Py.Object.t -> sequence:Py.Object.t -> unit -> Py.Object.t

reduce(function, sequence, initial) -> value

Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, 1, 2, 3, 4, 5) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the sequence is empty.

val reraise : ?tb:Py.Object.t -> tp:Py.Object.t -> value:Py.Object.t -> unit -> Py.Object.t

Reraise an exception.

Text literal

val with_metaclass : ?base:Py.Object.t -> meta:Py.Object.t -> unit -> Py.Object.t

Create a base class with a metaclass.

OCaml

Innovation. Community. Security.