Package conduit :: Package datatypes :: Module Text :: Class Text
[hide private]

Class Text

source code


Wrapper around a text string. Use this as a datatype instead of the plain string object

Instance Methods [hide private]
 
__init__(self, text, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
get_string(self) source code
 
__str__(self)
str(x)
source code
 
__getstate__(self)
Store the object state in a dict for pickling
source code
 
__setstate__(self, data)
Set object state from dict (after unpickling)
source code
 
get_hash(self) source code

Inherited from DataType.DataType: compare, get_UID, get_mtime, get_open_URI, get_rid, get_snippet, get_tags, get_type, set_UID, set_mtime, set_open_URI, set_tags

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Class Variables [hide private]
string _name_ = "text"
The name of the type
Instance Variables [hide private]

Inherited from DataType.DataType: UID, URI

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, text, **kwargs)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: DataType.DataType.__init__

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

__getstate__(self)

source code 
Store the object state in a dict for pickling
Overrides: DataType.DataType.__getstate__
(inherited documentation)

__setstate__(self, data)

source code 
Set object state from dict (after unpickling)
Overrides: DataType.DataType.__setstate__
(inherited documentation)

get_hash(self)

source code 
Overrides: DataType.DataType.get_hash