String (hwx.inspire.Attributes)#

class String(default='', **kwds)#

Bases: Attribute

Store string value

Method Table#

Name

Description

create (self, obj)

Example

from hwx.inspire import *

class Message(GeneralObject):
text = String("Hello World")

message = Message()
print(message.text)
Value#

alias of 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.