code: def get_methods(self):
          
          return [x
                  for x in self.direct_methods] + [x
                                                   for x in self.virtual_methods]
docs: Return direct and virtual methods
  
          :rtype: a list of :class:`EncodedMethod` objects