Package glue :: Package ligolw :: Module table :: Class Table :: Class RowType
[hide private]
[frames] | no frames]

Class RowType

source code

object --+
         |
        Table.RowType
Known Subclasses:

Helpful parent class for row objects. Also used as the default row class by Table instances. Provides an __init__() method that accepts keyword arguments from which the object's attributes are initialized.

Example:

>>> x = Table.RowType(a = 0.0, b = "test", c = True)
>>> x.a
0.0
>>> x.b
'test'
>>> x.c
True

Also provides .__getstate__() and .__setstate__() methods to allow row objects to be pickled (otherwise, because they all use __slots__ to reduce their memory footprint, they aren't pickleable).

Instance Methods [hide private]
 
__getstate__(self) source code
 
__init__(self, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__setstate__(self, state) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)