Package pygeodesy :: Module bases :: Class _Based
[frames] | no frames]

Class _Based

object --+    
         |    
    _Named --+
             |
            _Based
Known Subclasses:

(INTERNAL) Base class with name.

Instance Methods
 
__repr__(self)
repr(x)
 
__str__(self)
str(x)
 
classof(self, *args, **kwds)
Instantiate this very class.
 
others(self, other, name='other')
Check this and an other instance for type compatiblility.
 
toStr(self, **kwds)
(INTERNAL) Must be overloaded.
 
toStr2(self, **kwds)
(INTERNAL) To be overloaded.

Inherited from _Named: copy

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

Properties

Inherited from _Named: classname, classnaming, name

Inherited from object: __class__

Method Details

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)

classof(self, *args, **kwds)

 

Instantiate this very class.

Parameters:
  • args - Optional, positional arguments.
  • kwds - Optional, keyword arguments.
Returns:
New instance (self.__class__).

others(self, other, name='other')

 

Check this and an other instance for type compatiblility.

Parameters:
  • other - The other instance (any type).
  • name - Optional, name for other (str).
Returns:
None.
Raises:
  • TypeError - Mismatch of this and other type.

toStr(self, **kwds)

 

(INTERNAL) Must be overloaded.

Parameters:
  • kwds - Optional, keyword arguments.

toStr2(self, **kwds)

 

(INTERNAL) To be overloaded.

Parameters:
  • kwds - Optional, keyword arguments.
Returns:
toStr() plus keyword arguments (as str).