def _is_inherited_from_object(cls, op):
 if (PYVERSION >= (3,)):
  object_op = getattr(object, op)
  cls_op = getattr(cls, op)
  return (object_op is cls_op)
 else:
  return (op not in dir(cls))

def _is_inherited_from_object ( cls , op ) : if ( PYVERSION >= ( 3 , ) ) : object_op = getattr ( object , op ) cls_op = getattr ( cls , op ) return ( object_op is cls_op ) else : return ( op not in dir ( cls ) )
whether operator *op* on *cls* is inherited from the root object type .