Package gavo :: Package base :: Module unitconv :: Class Factor
[frames] | no frames]

Class Factor

source code

object --+    
         |    
     _Node --+
             |
            Factor

A UnitNode with a power.

Instance Methods
 
__init__(self, unit, power)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code
 
getSI(self) source code

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

Class Methods
 
fromToks(cls, s, p, toks) source code
Properties

Inherited from object: __class__

Method Details

__init__(self, unit, power)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

fromToks(cls, s, p, toks)
Class Method

source code 
Overrides: _Node.fromToks

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)