<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 9/10/2011 5:58 AM, Kayode Odeyemi wrote:
    <blockquote
cite="mid:CAPbrmCtw8MgCSOSuqfTDMB_cv7ruepWYxkZBnwVSW8GycHXH6g@mail.gmail.com"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html;
        charset=ISO-8859-1">
      <div>Hello,</div>
      <div><br>
      </div>
      <div>I'm testing Python's class abstractness and inheritance.
        Since interface doesn't exist, I will</div>
      <div>like to test how to have access to a superclass method from a
        subclass without necessary</div>
      <div>invoking or overriding the superclass method in its subclass.</div>
      <div><br>
      </div>
      <div>>>> class Equipment(object):</div>
      <div>...     def fault():</div>
      <div>...             return "fault"</div>
      <div>
        ...</div>
      <div>>>> Equipment().__class__</div>
      <div><class '__main__.Equipment'></div>
      <div>>>> class Vehicle(Equipment):</div>
      <div>...      # Find out here if Vehicle has access to fault</div>
      <div><br>
      </div>
      <div>I want to know whether Vehicle has access to Equipment's
        fault() method. </div>
      <div>Just want to know if it's there(that a vehicle can also
        develop a fault).</div>
      <div><br>
      </div>
      <div>I know I can override it, but I want to know if I can use it
        directly without overriding it.</div>
    </blockquote>
    <br>
    Perhaps this helps:<br>
<a class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/610883/how-to-know-if-an-object-has-an-attribute-in-python">http://stackoverflow.com/questions/610883/how-to-know-if-an-object-has-an-attribute-in-python</a><br>
    <br>
    <blockquote
cite="mid:CAPbrmCtw8MgCSOSuqfTDMB_cv7ruepWYxkZBnwVSW8GycHXH6g@mail.gmail.com"
      type="cite">
      -- <br>
      Odeyemi 'Kayode O.<br>
      <a moz-do-not-send="true" href="http://www.sinati.com">http://www.sinati.com</a>.
      t: @charyorde<br>
      <br>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 

Take care,
Ty
Web: <a class="moz-txt-link-freetext" href="http://tds-solutions.net">http://tds-solutions.net</a>
The Aspen project: a light-weight barebones mud engine
<a class="moz-txt-link-freetext" href="http://code.google.com/p/aspenmud">http://code.google.com/p/aspenmud</a>

Sent from my toaster.
</pre>
  </body>
</html>