Package glue :: Package ligolw :: Module ilwd :: Class ilwdchar
[hide private]
[frames] | no frames]

Class ilwdchar

source code

object --+
         |
        ilwdchar

Metaclass wrapper of glue.ligolw._ilwd.ilwdchar class. Instantiating this class constructs and returns an instance of a subclass of glue.ligolw._ilwd.ilwdchar.

Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, s)
Convert an ilwd:char-formated string into an instance of the matching subclass of _ilwd.ilwdchar.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(cls, s)
Static Method

source code 

Convert an ilwd:char-formated string into an instance of the matching subclass of _ilwd.ilwdchar. If the input is None then the return value is None.

Example:

>>> x = ilwdchar(u"process:process_id:10")
>>> str(x)
'process:process_id:10'
>>> x.table_name
u'process'
>>> x.column_name
u'process_id'
>>> int(x)
10
>>> x.index_offset
19
>>> str(x)[x.index_offset:]
'10'
>>> print(ilwdchar(None))
None
Returns: a new object with type S, a subtype of T
Overrides: object.__new__