eta.lf.Var

class Var(var, val=None)[source]

Bases: object

Defines a variable, with some variable symbol and some value assignment.

Parameters:
  • var (str) – The variable symbol.

  • val (object, optional) – The value this variable is currently bound to. Generally this will be a string, though it may in principle be some other object (e.g., an Individual) as well.

var
Type:

str

val
Type:

object

Notes

TODO: currently incomplete and unused.

Methods

bind

Bind this variable to the given value.

unbind

Unbind this variable.

bind(val)[source]

Bind this variable to the given value.

unbind()[source]

Unbind this variable.

__str__()[source]

Return str(self).