proxy - Symbol proxy object for constraint generation

proxy contains Symbol and functions related to it.

class constraints.proxy.Symbol(f=None, parent=None)[source]

A proxy object that can be used to generatively construct functions at runtime. Most operations performed on a Symbol will return another Symbol, representing the state of the first Symbol after the operation.

Notable exceptions to this include functions such as isinstance, and the built-in type/functions, such as int, float, bool, etc.

constraints.proxy.chainable(f)[source]

Chainable functions return Symbol objects.

constraints.proxy.copy_func(f, code=None, globals_=None, name=None, argdefs=None, closure=None)[source]

Create a copy of a function, replacing any portions specified.

constraints.proxy.create_cell(obj)[source]

Create a cell object which references obj.

Indices and tables

Table Of Contents

Previous topic

constraints - Validation utility classes

Next topic

util - Utility functions for constraints

This Page