String#

class swordfish._swordfishcpp.String(data: str)#
class swordfish._swordfishcpp.String

Represents a Swordfish String object, initialized optionally with a Python str value.

Parameters:

data (str, optional) – A Python str used to initialize the String object.

Examples

>>> import swordfish as sf
>>> sf.data.String()
String(null)
>>> sf.data.String("hello")
String(hello)
NULL_VALUE: String#