parameters: (self, other_class_name)
return_statement: return other_is_library_side == this_is_library_side
docstring: Returns true if this function is on the same side (library or
              client) and the specified class.
docstring_summary: Returns true if this function is on the same side (library or
              client) and the specified class.
docstring_tokens: Returns true if this function is on the same side ( library or client ) and the specified class .
function: def is_same_side(self, other_class_name):
      """ Returns true if this function is on the same side (library or
              client) and the specified class. """
      if isinstance(self.parent, obj_class):
        # this function is part of a class
        this_is_library_side = self.parent.is_library_side()
        header = self.parent.parent
      else:
        # this function is global
        this_is_library_side = True
        header = self.parent
  
      if is_base_class(other_class_name):
        other_is_library_side = False
      else:
        other_class = header.get_class(other_class_name)
        if other_class is None:
          raise Exception('Unknown class: ' + other_class_name)
        other_is_library_side = other_class.is_library_side()
  
      return other_is_library_side == this_is_library_side
function_tokens: def is_same_side ( self , other_class_name ) : if isinstance ( self . parent , obj_class ) : # this function is part of a class this_is_library_side = self . parent . is_library_side ( ) header = self . parent . parent else : # this function is global this_is_library_side = True header = self . parent if is_base_class ( other_class_name ) : other_is_library_side = False else : other_class = header . get_class ( other_class_name ) if other_class is None : raise Exception ( 'Unknown class: ' + other_class_name ) other_is_library_side = other_class . is_library_side ( ) return other_is_library_side == this_is_library_side