![]() |
Like wrapt.ObjectProxy
except using our way.
Inherits From: SpecialMethods
tfp.experimental.lazybones.utils.ObjectProxy(
wrapped, unpack=True
)
Methods
__abs__
__abs__(
x, /
)
Return the absolute value of the argument.
__add__
__add__(
a, b, /
)
Same as a + b.
__and__
__and__(
a, b, /
)
Same as a & b.
__bool__
__bool__()
bool(x) -> bool
Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed.
__call__
__call__(
*args, **kwargs
)
__contains__
__contains__(
a, b, /
)
Same as b in a (note reversed operands).
__enter__
__enter__()
__eq__
__eq__(
a, b, /
)
Same as a == b.
__exit__
__exit__(
exc_type, exc_value, traceback
)
__floordiv__
__floordiv__(
a, b, /
)
Same as a // b.
__ge__
__ge__(
a, b, /
)
Same as a >= b.
__getitem__
__getitem__(
a, b, /
)
Same as a[b].
__gt__
__gt__(
a, b, /
)
Same as a > b.
__invert__
__invert__(
a, /
)
Same as ~a.
__iter__
__iter__()
iter(iterable) -> iterator iter(callable, sentinel) -> iterator
Get an iterator from an object. In the first form, the argument must supply its own iterator, or be a sequence. In the second form, the callable is called until it returns the sentinel.
__le__
__le__(
a, b, /
)
Same as a <= b.
__len__
__len__(
obj, /
)
Return the number of items in a container.
__lt__
__lt__(
a, b, /
)
Same as a < b.
__matmul__
__matmul__(
a, b, /
)
Same as a @ b.
__mod__
__mod__(
a, b, /
)
Same as a % b.
__mul__
__mul__(
a, b, /
)
Same as a * b.
__ne__
__ne__(
a, b, /
)
Same as a != b.
__neg__
__neg__(
a, /
)
Same as -a.
__or__
__or__(
a, b, /
)
Same as a | b.
__pos__
__pos__(
a, /
)
Same as +a.
__pow__
__pow__(
x, y, z, /
)
Equivalent to xy (with two arguments) or xy % z (with three arguments)
Some types, such as ints, are able to use a more efficient algorithm when invoked using the three argument form.
__radd__
__radd__(
a, b, /
)
Same as a + b.
__rand__
__rand__(
a, b, /
)
Same as a & b.
__rfloordiv__
__rfloordiv__(
a, b, /
)
Same as a // b.
__rmatmul__
__rmatmul__(
a, b, /
)
Same as a @ b.
__rmod__
__rmod__(
a, b, /
)
Same as a % b.
__rmul__
__rmul__(
a, b, /
)
Same as a * b.
__ror__
__ror__(
a, b, /
)
Same as a | b.
__rpow__
__rpow__(
x, y, z, /
)
Equivalent to xy (with two arguments) or xy % z (with three arguments)
Some types, such as ints, are able to use a more efficient algorithm when invoked using the three argument form.
__rsub__
__rsub__(
a, b, /
)
Same as a - b.
__rtruediv__
__rtruediv__(
a, b, /
)
Same as a / b.
__rxor__
__rxor__(
a, b, /
)
Same as a ^ b.
__sub__
__sub__(
a, b, /
)
Same as a - b.
__truediv__
__truediv__(
a, b, /
)
Same as a / b.
__xor__
__xor__(
a, b, /
)
Same as a ^ b.
Class Variables | |
---|---|
slots |