Int (hwx.inspire.Attributes)#
- class Int(default=0, **kwds)#
Bases:
Attribute
Store integer value
# Name
Type
default
int
# Name
Description
create
(self, obj)Example
from hwx.inspire import * class Counter(GeneralObject): value = Int(1) counter = Counter() counter.value += 1 print(counter.value)
- create(obj)#
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.