pipda.expression
Provides the abstract class Expression
Classes
Expression
(
)
— The abstract Expression class</>
Functions
register_array_ufunc
(
func
)
— Register a function to be used as array_ufunc on Expression</>
abstract class
pipda.expression.
Expression
(
)
The abstract Expression class
Methods
__array_ufunc__
(
ufunc
,method
,*inputs
,**kwargs
)
(FunctionCall) — Allow numpy ufunc to work on Expression objects</>__getattr__
(
name
)
(ReferenceAttr) — Wheneverexpr.attr
is encountered,return a ReferenceAttr object </>__getitem__
(
item
)
(ReferenceItem) — Wheneverexpr[item]
is encountered,return a ReferenceAttr object </>__hash__
(
)
(int) — Make it hashable</>__index__
(
)
— Allow Expression object to work as index or part of slice</>__iter__
(
)
— Forbiden iterating on Expression objects</>__str__
(
)
(str) — Used for stringify the whole expression</>
method
__array_ufunc__
(
ufunc
, method
, *inputs
, **kwargs
)
→ FunctionCall
Allow numpy ufunc to work on Expression objects
method
__hash__
(
)
→ int
Make it hashable
method
__getattr__
(
name
)
→ ReferenceAttr
Whenever expr.attr
is encountered,return a ReferenceAttr object
method
__getitem__
(
item
)
→ ReferenceItem
Whenever expr[item]
is encountered,return a ReferenceAttr object
method
__index__
(
)
Allow Expression object to work as index or part of slice
method
__iter__
(
)
Forbiden iterating on Expression objects
If it is happening, probably wrong usage of functions/verbs
abstract method
__str__
(
)
→ str
Used for stringify the whole expression
function
pipda.expression.
register_array_ufunc
(
func
)
Register a function to be used as array_ufunc on Expression