Ejemplo n.º 1
0
def inStr(inst, *args, **kwds):
    '''Return the string representation of an instance.

       @param inst: The instance (any type).
       @param args: Optional positional arguments.
       @keyword kwds: Optional keyword arguments.

       @return: The I{inst}'s representation (C{str}).
    '''
    return unStr(classname(inst), *args, **kwds)
Ejemplo n.º 2
0
 def _xcopy(self, *attrs):
     '''(INTERNAL) Must be overloaded.
     '''
     raise AssertionError(unStr(self.classname + '._xcopy', *attrs))
Ejemplo n.º 3
0
 def falsed2(self):
     '''(INTERNAL) Must be overloaded.
     '''
     raise AssertionError(unStr(self.classname + '.falsed2'))
Ejemplo n.º 4
0
    def toStr(self, **kwds):
        '''(INTERNAL) Must be overloaded.

           @param kwds: Optional, keyword arguments.
        '''
        raise AssertionError(unStr(self.classname + '.toStr', **kwds))
Ejemplo n.º 5
0
 def toCartesian(self):
     '''Convert this (geodetic) point to (geocentric) x/y/z
        Cartesian coordinates.  Must be overloaded.
     '''
     raise AssertionError(unStr(self.classname + '.toCartesian'))