scenic.core.lazy_eval¶
Support for lazy evaluation of expressions and specifiers.
Summary of Module Members¶
Functions
Utility function for creating a lazily-evaluated function call. |
|
|
|
|
|
|
|
|
|
Evaluate something in the context of an object being constructed. |
Classes
Specifier arguments requiring other properties to be evaluated first. |
|
Values which may require evaluation in the context of an object being constructed. |
Member Details¶
-
class
LazilyEvaluable
(requiredProps)[source]¶ Bases:
object
Values which may require evaluation in the context of an object being constructed.
If a LazilyEvaluable specifies any properties it depends on, then it cannot be evaluated to a normal value except during the construction of an object which already has values for those properties.
-
class
DelayedArgument
(requiredProps, value)[source]¶ Bases:
scenic.core.lazy_eval.LazilyEvaluable
Specifier arguments requiring other properties to be evaluated first.
The value of a DelayedArgument is given by a function mapping the context (object under construction) to a value.