Package obitools :: Package table :: Class TableRow
[hide private]
[frames] | no frames]

Class TableRow

source code


Instance Methods [hide private]
 
__init__(self, table, data=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
getType(self) source code
 
getHeaders(self) source code
 
getHIndex(self) source code
 
getColCount(self) source code
 
_castRow(self, data) source code
 
__getitem__(self, key) source code
 
__setitem__(self, key, value) source code
 
__iter__(self) source code
 
append(self, value) source code
 
pop(self, key=None) source code
 
extend(self, values) source code
 
__len__(self) source code
 
__repr__(self)
repr(x)
source code
 
__str__(self)
str(x)
source code
 
castRow(self) source code

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

Static Methods [hide private]
 
_castValue(t, x)
Cast a value to a specified type, with exception of None values that are returned without cast.
source code
Properties [hide private]
  types
List of types associated to this row
  headers
List of headers associated to this row
  _hindex
  _colcount

Inherited from object: __class__

Method Details [hide private]

__init__(self, table, data=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

_castValue(t, x)
Static Method

source code 

Cast a value to a specified type, with exception of None values that are returned without cast.

Parameters:
  • t (type) - the destination type
  • x - the value to cast
Returns:
the casted value or None

__getitem__(self, key)
(Indexing operator)

source code 
Parameters:
  • key ()

__setitem__(self, key, value)
(Index assignment operator)

source code 
Parameters:
  • key ()
  • value ()

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

Property Details [hide private]

types

List of types associated to this row

Get Method:
getType(self)

headers

List of headers associated to this row

Get Method:
getHeaders(self)

_hindex

Get Method:
getHIndex(self)

_colcount

Get Method:
getColCount(self)